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

Support models of class gamm #385

Open
IreneRepeto opened this issue Jul 27, 2023 · 2 comments
Open

Support models of class gamm #385

IreneRepeto opened this issue Jul 27, 2023 · 2 comments
Labels
feature idea 🔥 New feature or request

Comments

@IreneRepeto
Copy link

in model_dashboard: Regression model summary from {easystats}, model fit and textual summary:

`Oops, objects of class [gamm, list] are not supported (yet) by report_performance() :(

@etiennebacher
Copy link
Member

Hello, it seems that models of class gamm are not supported by the package report (as indicated in the message). However, it is possible to run performance::performance() on them:

library(mgcv)
#> Le chargement a nécessité le package : nlme
#> This is mgcv 1.9-0. For overview type 'help("mgcv-package")'.

packageVersion("performance")
#> [1] '0.10.4'
packageVersion("report")
#> [1] '0.5.7.10'

# from mgcv::gamm
set.seed(0) 
dat <- gamSim(1,n=200,scale=2)
#> Gu & Wahba 4 term additive model
model <- gamm(y~s(x0)+s(x1)+s(x2)+s(x3),data=dat)

performance::performance(model)
#> Warning in nobs.default(object, use.fallback = use.fallback): pas de méthode
#> 'nobs' disponible
#> # Indices of model performance
#> 
#> AIC     |     BIC |    R2 |  RMSE | Sigma
#> -----------------------------------------
#> 891.170 | 940.654 | 0.707 | 2.083 | 2.115

report::report_performance(model)
#> Error: Oops, objects of class [gamm, list] are not supported (yet) by report_performance() :(
#> 
#> Want to help? Check out https://easystats.github.io/report/articles/new_models.html

Therefore I move this issue to the report repository (also next time please use a more explicit title than "please!")

@etiennebacher etiennebacher transferred this issue from easystats/easystats Jul 27, 2023
@etiennebacher etiennebacher changed the title please! Support models of class gamm Jul 27, 2023
@IreneRepeto
Copy link
Author

IreneRepeto commented Jul 27, 2023

Many thanks Etienne, and sorry for the unexplicit title. It was just my frustration speaking.

Great work!
Irene

@etiennebacher etiennebacher reopened this Jul 27, 2023
@rempsyc rempsyc added the feature idea 🔥 New feature or request label Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature idea 🔥 New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants