prepare_gam_predict: Prepare Prediction of Simulated Data Using MGCV Model Object

prepare_gam_predictR Documentation

Prepare Prediction of Simulated Data Using MGCV Model Object

Description

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.

Usage

prepare_gam_predict(data, num_cov, interaction, which_inter, model)

Arguments

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.


alexvolkmann/multifammPaper documentation built on Sept. 9, 2024, 8:47 p.m.