LCBC-UiO / galamm

An R package for estimating generalized additive mixed models with latent variables
https://lcbc-uio.github.io/galamm/
GNU General Public License v3.0
28 stars 2 forks source link

Summary for smooth terms #127

Closed osorensen closed 1 year ago

osorensen commented 1 year ago

Summary for smooth terms should show the smooth terms. Currently only their mixed model representation is shown.

library(galamm)
dat <- subset(cognition, domain == 1 & item == 1)
mod <- galamm(y ~ s(x) + (1 | id), data = dat)
summary(mod)
#> Generalized additive latent and mixed model fit by maximum marginal likelihood.
#> Formula: y ~ s(x) + (1 | id)
#>    Data: dat
#> 
#>      AIC      BIC   logLik deviance df.resid 
#>   3166.0   3192.9  -1578.0   3156.0     1595 
#> 
#> Scaled residuals: 
#>     Min      1Q  Median      3Q     Max 
#> -2.9092 -0.5972 -0.0113  0.6094  3.3454 
#> 
#> Random effects:
#>  Groups   Name        Variance Std.Dev.
#>  id       (Intercept) 0.8744   0.9351  
#>  Xr       s(x)        2.1440   1.4642  
#>  Residual             0.2757   0.5250  
#> Number of obs: 1600, groups:  id, 200; Xr, 8
#> 
#> Fixed effects:
#>             Estimate Std. Error t value  Pr(>|t|)
#> (Intercept)  1.25074    0.06741 18.5543 7.527e-77
#> s(x)Fx1      0.03339    0.20805  0.1605 8.725e-01

Created on 2023-09-14 with reprex v2.0.2

osorensen commented 1 year ago

Closed by #128.