Skip to contents

Specifies an observed indicator variable for a latent construct declared with drm_latent().

Usage

drm_indicator(name, loading = NULL, marker = FALSE)

Arguments

name

Character string naming an indicator column in the data.

loading

Optional fixed loading value (numeric). If NULL (default), the loading is estimated from data.

marker

Logical. If TRUE, this indicator serves as the marker variable for identification (unit loading constraint: \(\lambda = 1\)).

Value

A drm_indicator object.

Examples

drm_indicator("y1", marker = TRUE)
#> <indicator> y1 [marker, lambda = 1]
drm_indicator("y2")
#> <indicator> y2