penfaSampleStats-class {penfa}R Documentation

S4 Class for describing the sample moments

Description

The penfaSampleStats class provides information on the sample moments of the factor analysis model. This class is an adaptation of the lavSampleStats class from the lavaan package.

Slots

var

List of the variances of the observed variables in every group.

cov

List of the covariance matrices of the observed variables in every group.

mean

List of the means of the observed variables in every group.

group.w

List of group weights.

nobs

List of the effective number of observations for every group.

ntotal

Integer. Total number of observations across all groups.

ngroups

Integer. Number of groups.

icov

List of the inverse matrices of the covariance matrices of the observed variables in every group.

cov.log.det

List of the logarithms of the determinants of the covariance matrices of the observed variables for every group.

See Also

penfa

Examples


data(ccdata)

syntax = 'help  =~   h1 + h2 + h3 + h4 + h5 + h6 + h7 + 0*v1 + v2 + v3 + v4 + v5
          voice =~ 0*h1 + h2 + h3 + h4 + h5 + h6 + h7 +   v1 + v2 + v3 + v4 + v5'

alasso_fit <- penfa(## factor model
                    model  = syntax,
                    data   = ccdata,
                    std.lv = TRUE,
                    ## penalization
                    pen.shrink = "alasso",
                    eta = list(shrink = c("lambda" = 0.01), diff = c("none" = 0)),
                    ## automatic procedure
                    strategy = "auto")

alasso_fit@SampleStats


[Package penfa version 0.1.1 Index]