Comments (5)
This issue is not present when I revert to gratia version 0.8.1
from gratia.
Hi,
I have also encountered this issue. I maintain a package that has a dependency on gratia (https://github.com/McGranahanLab/TcellExTRECT) besides the changing of the column names of confint.gam in 0.9.0 I am now getting different results compared to previous version. I have tested this and it is due to this issue of shift = TRUE not being functional within confint.gam from 0.9.0.
The code for confint.gam in gratia 0.8.2 included the following:
out[["est"]] <- ilink(out[["est"]] + const)
out[["lower"]] <- ilink(out[["lower"]] + const)
out[["upper"]] <- ilink(out[["upper"]] + const)
In gratia 0.9.0 this has changed to:
out <- mutate(out, across(all_of(c(".estimate", ".lower_ci",
".upper_ci")), .fns = ilink))
With no reference to the const value and no shift in values even when shift = TRUE. This could be easily fixed if you just replaced the above with something similar to the old version:
out[[".estimate"]] <- ilink(out[[".estimate"]] + const)
out[[".lower_ci"]] <- ilink(out[[".lower_ci"]] + const)
out[[".upper_ci"]] <- ilink(out[[".upper_ci"]] + const)
from gratia.
Yeah, sorry @TIMAVID and @rbentham; I messed that up. And sorry @TIMAVID for not getting to this sooner, even to acknowledge it (it's been a very busy month at work).
The problem is not in the lines of code you mention @rbentham but here
Lines 417 to 420 in b03e7d5
As far as I can tell, the mutate()
call is doing what it is supposed to do, namely transform the using either the inverse link function, a user-supplied function, or the identity function, depending on what's passed to transform
. I'm testing a fix now.
@rbentham Is this causing you problems with a package on CRAN? If so I can expedite a patch release to CRAN.
from gratia.
Related Issues (20)
- Support for models with `gfam()` family
- `data_sim()`
- gfam support in `appraise()`
- `draw()` works with gfam models HOT 1
- gfam support in `fitted_samples()`
- gfam support in `posterior_samples()`
- gfam support in `smooth_samples()`
- gfam support in `simulate.gam()`
- `compute_partial_residuals` is wrong if deviance residuals are not equivalent to pearson residuals? HOT 2
- Ensure continuity of gam from start of series to end of series HOT 1
- Tests fail with current version of `Matrix` (1.6-5): `function 'chm_factor_ldetL2' not provided by package 'Matrix'` HOT 3
- Improve plotting code for SOS (spline-on-the-sphere) smooths
- Work towards bayesplot and loo integration?
- Select mvn_method when running `fitted_samples()` HOT 1
- Possible PR: making posterior draws compatible with MCMC diagnostic packages
- `draw()` fails with `parametric = TRUE` if there aren't any parametric effects to actually plot
- `draw` forgets order of ordered factor HOT 2
- Encountering errors with difference_smooths() - potential bug? HOT 1
- `appraise()` and `qq_plot()` need a `seed` argument and to run the RNG-using bits with that seed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gratia.