estim_overall_cov: Function to Estimate the Covariance Operator

View source: R/helperfunctions_application.R

estim_overall_covR Documentation

Function to Estimate the Covariance Operator

Description

This function conducts a fast symmetric covariance estimation on some data.table as proposed by Cederbaum et al. (2018). The parameters in the function definition depend on the implementation of the sparseflmm(). Given the estimated covariance surface, the function also conducts an MFPCA thus giving FPCs.

Usage

estim_overall_cov(data, m_mean = c(2, 1), covariate = FALSE,
  num_covariates = 4, covariate_form = rep("by", times = 4),
  interaction = FALSE, which_interaction = matrix(NA))

Arguments

data

Data.table containig the information needed for the sparseflmm() function.

m_mean

Order of penalty for basis function (as in sparseFLMM).

covariate

Covariate effects (as in sparseFLMM).

num_covariates

Number of covariates included in the model (as in sparseFLMM).

covariate_form

Vector of strings for type of covariate (as in sparseFLMM).

interaction

TRUE if there are interactions between covariates (as in sparseFLMM). Defaults to FALSE.

which_interaction

Symmetric matrix specifying the interaction terms (as in sparseFLMM).


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