Learn R Programming

penfa (version 0.1.1)

penfaParEstim: Print parameter estimates in table format

Description

The parameter estimates of the penalized factor analysis model in each group.

Usage

penfaParEstim(
  object,
  se = TRUE,
  ci = TRUE,
  level = 0.95,
  remove.nonfree = FALSE,
  output = "data.frame",
  header = FALSE
)

Arguments

object

An object of class '>penfa.

se

Logical. If TRUE, it includes a column with the standard errors.

ci

Logical. If TRUE, the confidence intervals are added to the output.

level

The confidence level, default is 0.95.

remove.nonfree

Logical. If TRUE, it filters the output and removes all rows with fixed (that is, neither free, nor penalized) parameters.

output

Character. If "data.frame", the parameter table is displayed as a standard formatted data.frame. If "text", the parameter table is displayed with subsections (as used by the summary function).

header

Logical, only used if output = "text". If TRUE, it prints a header on top of the parameter list with details on the group levels and the information matrix used during optimization by the trust-region algorithm.

Value

A dataframe of class penfa.data.frame with the parameter estimates of a penfa model for each group.

See Also

penfa

Examples

Run this code
# NOT RUN {
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")

penfaParEstim(alasso_fit)

# }

Run the code above in your browser using DataLab