create_mmodel: Specifying a measurement model.

Description Usage Arguments Value Examples

View source: R/model_specification.R

Description

Specifying a measurement model.

Usage

1
create_mmodel(..., list = NULL, lv_scaling = "effect", invariance = NULL)

Arguments

...

Named arguments each representing a latent variable. The arguments are character vectors containing the variable names the latent variables are measured by.

list

List. Each list element represents a latent variable. List elements are character vectors containing the variable names the latent variables are measured by.

lv_scaling

Character vector. Defines the strategy for latent variable scaling. Default is lv_scaling = "effect". Possible strategies are: c("effect", "referent").

invariance

Not yet implemented.

Value

Object of classe mmodel.

Examples

1
2
3
4
5
6
7
8
9
mmodel <- create_mmodel(
    A1B1 = "var1",
    A2B1 = "var2",
    A3B1 = "var3",
    A1B2 = "var4",
    A2B2 = "var5",
    A3B2 = "var6",
    lv_scaling = "referent"
)

semnova documentation built on July 1, 2020, 10:43 p.m.