View source: R/helperfunctions_application.R
estim_overall_cov | R Documentation |
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.
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))
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 |
which_interaction |
Symmetric matrix specifying the interaction terms (as in sparseFLMM). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.