Comments (5)
Please provide a reproducible example.
from ggeffects.
should be fixed in strengejacke/sjstats@f8fd653, so you need to install the latest GitHub version of sjstats in order to solve this issue with ggeffects.
from ggeffects.
Hi,
This fix does not appear to be working for me. I installed the latest sjstats:
devtools::install_github("strengejacke/sjstats")
and then I installed the dev versions in sequence as you suggest in the sjstats readme:
devtools::install_github("strengejacke/sjlabelled")
devtools::install_github("strengejacke/sjmisc")
devtools::install_github("strengejacke/sjstats")
devtools::install_github("strengejacke/ggeffects")
devtools::install_github("strengejacke/sjPlot")
The new installations had no effect on the errors thrown by the following code:
d = data.frame(x1 = rnorm(100, 0, 1),
x2 = rnorm(100, 0, 1),
pop = rpois(100, 100))
d$y = rpois(100, exp(0 + d$x1*.3 + d$x2*-.4 + d$x1*d$x2*.5))
d$log_pop = log(d$pop)
m <- glm(y ~ x1*x2, offset=log(pop), data=d)
plot_model(m, type = "pred", terms = c("x1", "x2", "pop"))
is.na() applied to non-(list or vector) of type 'NULL'Error in names(datlist) <- names(first) :
'names' attribute [3] must be the same length as the vector [2]
m <- glm(y ~ x1*x2, offset=log_pop, data=d)
plot_model(m, type = "pred", terms = c("x1", "x2", "log_pop"))
ERROR: is.na() applied to non-(list or vector) of type 'NULL'Error in names(datlist) <- names(first) :
'names' attribute [3] must be the same length as the vector [2]
names(sjstats::model_frame(m))`
returns a model frame where the offset term is called (offset)
.
from ggeffects.
This fix addressed a different issue, where the offset
was part of the formula. Could you please file an issue at the sjstats-repo? https://github.com/strengejacke/sjstats/issues
from ggeffects.
Oh, perfect. I apologize for not noticing that. I will open the issue, but am glad that there is a workaround!
from ggeffects.
Related Issues (20)
- New incompatibilities with emmeans for quantile regression HOT 4
- ggpredict() does not recognise `` quoted response variable with a : symbol in mixed models HOT 1
- "Collapse_group" produces many data points HOT 4
- ggpredict doesn't work for vglm models where multiple.responses = TRUE HOT 1
- Problem with ggpredict when fixing a parameter value in glmmTMB HOT 2
- ggpredict() returns 90% CI when ppd = TRUE for rstanarm models, but labeled as 95% HOT 1
- Difference between insight::get_predicted and ggeffects::ggpredict when calculating PI
- ggpredict outputs only 6 values at the time HOT 1
- `tinytable` S4 refactor: output formats HOT 5
- Issue with plotting an interaction with a quadratic variable through plot_model from a multi-level and logistic model HOT 2
- hypothesis_test on the lme4 object makes rstudio crash HOT 14
- Prediction intervals from predict_response(type="random") for meta-analysis using nlme
- Errors with new ggeffects version & zero-inflated negative binomial model (glmmTMB) HOT 4
- `data_tabulate()` for crosstables prints NA-proportions when no values are available
- zi_prob-type predictions with new predict_response function HOT 7
- how does test_predictions deal with categorical non-focal terms? HOT 7
- ggeffects capabilities with spatail regression model objects HOT 2
- Error when specifying focal terms in ggeffect() HOT 2
- Wrong labels for `test_prediction()` with `margin`. HOT 1
- Fix printing issue with cleaning values
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 ggeffects.