fabsig / GPBoost

Combining tree-boosting with Gaussian process and mixed effects models
Other
552 stars 43 forks source link

How to get the model variance for a random intercept model using gpboost? #128

Closed raheems closed 7 months ago

raheems commented 7 months ago

I fitted a random intercept model with one grouping variable. I get the model summary such as

Model summary:
 Log-lik    AIC    BIC
 -181.17 388.34 451.42
Nb. observations: 946
Nb. groups: 113 (id)
-----------------------------------------------------
Covariance parameters (random effects):
     Param.
id  24.6481

How to get the model variance in addition to the covariance of the random effects? In statsmodels, there is a Scale parameter which shows the model variance.

fabsig commented 7 months ago

What's your likelihood? It seems you have a non-Gaussian likelihood such as a binary. If you have a binary likelihood, there is no other parameter. If you have likelihood = "gaussian", you will see the error variance.