predict_training_data_random_effects.GPModel | R Documentation |
GPModel
Predict ("estimate") training data random effects for a GPModel
## S3 method for class 'GPModel'
predict_training_data_random_effects(gp_model,
predict_var = FALSE)
gp_model |
A |
predict_var |
A |
A GPModel
Fabio Sigrist
data(GPBoost_data, package = "gpboost")
# Add intercept column
X1 <- cbind(rep(1,dim(X)[1]),X)
X_test1 <- cbind(rep(1,dim(X_test)[1]),X_test)
gp_model <- fitGPModel(group_data = group_data[,1], y = y, X = X1, likelihood="gaussian")
all_training_data_random_effects <- predict_training_data_random_effects(gp_model)
first_occurences <- match(unique(group_data[,1]), group_data[,1])
unique_training_data_random_effects <- all_training_data_random_effects[first_occurences]
head(unique_training_data_random_effects)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.