Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excluding random effects when using simulate.gam #74

Closed
hgoldspiel opened this issue Jun 4, 2020 · 3 comments
Closed

excluding random effects when using simulate.gam #74

hgoldspiel opened this issue Jun 4, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hgoldspiel
Copy link

Is it possible to ignore random effects when using simulate.gam() with new data? It seems there is only a newdata argument in the function, and no way to include an exclude or newdata.guaranteed argument as I normally would in predict.gam() when I want to average responses over random effects. Thanks!

@gavinsimpson
Copy link
Owner

Thanks for the suggestion; no simulate.gam() doesn't allow this but it would be trivial to add by passing the additional argument to predict.gam(). I'll add this shortly.

@gavinsimpson gavinsimpson self-assigned this Jun 5, 2020
@gavinsimpson gavinsimpson added the enhancement New feature or request label Jun 5, 2020
@gavinsimpson gavinsimpson added this to the 0.5 milestone Jun 5, 2020
gavinsimpson added a commit that referenced this issue Jun 5, 2020
@gavinsimpson
Copy link
Owner

You can now pass exclude, terms etc to predict.gam()

@hgoldspiel
Copy link
Author

Thanks! Excited to use this!

gavinsimpson added a commit that referenced this issue Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants