compute_estimated_n: Estimate Degrees of Freedom by Linear Projection

Description Usage Arguments Value Functions

View source: R/compute_estimated_n.R

Description

Estimate the Degrees of Freedom of a model by projecting the theoretical variance on the estimated (empirical) variance. When using compute_estimated_n, the theoretical variance is computed using corrmat_covariance

Usage

1
2
3
compute_estimated_n_raw(est, theo, only_diag = FALSE)

compute_estimated_n(obj, only_diag = TRUE)

Arguments

est

the empirical covariance matrix, n^{-1}≤ft(Y-\hat{μ}\right)≤ft(Y-\hat{μ}\right)^{t}

theo

the theoretical covariance matrix

only_diag

logical, whether to use only the diagonal (variances) or the whole matrix. Default FALSE

obj

array of correlation matrices or a matrix of diagnolized correlation matrices.

Value

the result of the projection of theo ~ est

Functions


itamarfaran/corrfuncs documentation built on Nov. 26, 2021, 12:02 p.m.