prepSingleFactorModel: Specify a single factor model

View source: R/fit.R

prepSingleFactorModelR Documentation

Specify a single factor model

Description

Specify a single latent factor with a path to each item.

Usage

prepSingleFactorModel(data, factorScalePrior = deprecated())

Arguments

data

a data list prepared for processing by Stan

factorScalePrior

a named numeric vector (deprecated)

Value

a data list suitable for passing as the data argument to pcStan or stan

See Also

Other factor model: prepFactorModel()

Other data preppers: prepCleanData(), prepData(), prepFactorModel()

Examples

dl <- prepData(phyActFlowPropensity)
dl <- prepSingleFactorModel(dl)
str(dl)

pcFactorStan documentation built on Sept. 14, 2023, 1:09 a.m.