Learn R Programming

multifamm (version 0.1.1)

extract_components: Extract Model Components to be Compared

Description

This is an internal function that helps to compare different models. The models resulting from a multiFAMM() call are typically very big. This function extracts the main information from a model so that a smaller R object can be saved.

Usage

extract_components(model, dimnames)

Arguments

model

multiFAMM model object from which to extract the information.

dimnames

Names of the dimensions of the model.

Value

A list with the following elements

  • error_var: A list containing the following elements

    • model_weights: Model weights used in the final multiFAMM.

    • modelsig2: Estimate of sigma squared in the final model.

    • uni_vars: Univariate estimates of sigma squared.

  • eigenvals: List containing the estimated eigenvalues.

  • fitted_curves: multiFunData object containing the fitted curves.

  • eigenfcts: multiFunData object containing the estimated eigenfunctions.

  • cov_preds: multiFunData object containing the estimated covariate effects.

  • ran_preds: List containing multiFunData objects of the predicted random effects.

  • scores: List containing matrices of the estimated scores.

  • meanfun: multiFunData object containing the estimated mean function.

  • var_info: List containing all eigenvalues and univariate norms before the MFPC pruning step

    • eigenvals: Vector of all multivariate eigenvalues.

    • uni_norms: List of univariate norms of all eigenfunctions.

Details

So far the grid is fixed to be on [0,1].