Closed yingboli closed 2 years ago
This is a prediction problem. You can obtain estimated / predicted random effects using the predict
function as shown here: https://github.com/fabsig/GPBoost/blob/master/examples/python-guide/GPBoost_algorithm.py#L67. Just pass to the argument group_data_pred
of the predict
function your training grouping variable for which you want to obtain estimated / predicted random effects. The random_effect_mean
in the output of the predict
function are then the „estimated“ random effects.
I see. Thank you.
I was only able to find estimates of the prior variance of random effects, using
gp_model.summary()
. But for inference purpose, I would also like to see the estimated random effects, i.e, the estimates ofb
in they = F(X) + Zb + e
formula. How can I do that? Thank you.