count_free_parameters: Count free parameters of structural equation model

Description Usage Arguments Value Examples

View source: R/model.R

Description

Counts free parameters of a structural equation model of class singleClass, semm, or nsemm.

Usage

1

Arguments

model

A model created with specify_sem.

Value

Returns the number of free parameters in the model (numeric).

Examples

1
2
3
model <- specify_sem(num.x = 4, num.y = 2, num.xi = 2, num.eta = 1, 
  xi = "x1-x2,x3-x4", eta = "y1-y2", interaction = "eta1~xi1:xi2")
count_free_parameters(model)

Example output

Loading required package: orthopolynom
Loading required package: polynom
[1] 22

nlsem documentation built on May 29, 2017, 11:51 p.m.