prepare_gam_predict | R Documentation |
This is function is used to generate new data sets. It adapts curve_info so that it has the same structure as the original data. Then, it is possible to use the predict function from mgcv.
prepare_gam_predict(data, num_cov, interaction, which_inter, model)
data |
Simulated data set for which the necessary model components are to be computed. |
num_cov |
Number of covariates if covariate = TRUE. |
interaction |
TRUE if there are interactions between covariates (as in sparseFLMM). |
which_inter |
Symmetric matrix specifying the interaction terms (as in sparseFLMM). |
model |
GAM model from which to extract the covariate functions. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.