get_fieller_ci: Find the Fieller interval for each k

Description Usage Arguments Value

View source: R/mifa-ci.R

Description

This function is used by mifa_ci_fieller() to compute Fieller's confidence intervals for each of the components of n_pc.

Usage

1
get_fieller_ci(eig_imp, n_pc, conf, N, m)

Arguments

eig_imp

A matrix with each of its columns the eigenvalues of the estimated covariance matrix for each imputed data.

n_pc

Integer or integer vector indicating number of principal components (eigenvectors) for which explained variance (eigenvalues) should be obtained and for which confidence intervals should be computed. Defaults to all principal components, i.e., the number of variables in the data.

conf

Confidence level for constructing confidence intervals. The default is .95 that is, 95% confidence intervals.

N

A scalar specifying sample size.

m

A scalar specifying number of multiple imputations.

Value

A vector of length 2, containing the lower and upper bounds of estimated Fieller's interval.


mifa documentation built on Jan. 22, 2021, 5:10 p.m.