make_bifactor_target: Create a Bifactor Target Matrix

View source: R/bifactor.R

make_bifactor_targetR Documentation

Create a Bifactor Target Matrix

Description

Builds the target loading matrix for B-ESEM. The general factor G has target 1 for all items (free to load everywhere). Each specific factor has target 1 for its primary items and 0 for all others.

Usage

make_bifactor_target(specific_factors, indicators, g_name = "G")

Arguments

specific_factors

Named list of specific factor -> item assignments.

indicators

Character vector of all item names.

g_name

Character. Name for the general factor. Default "G".

Value

A numeric matrix (items x factors) of class "esem_target". Column order: G first, then specific factors in list order.

Examples

tgt <- make_bifactor_target(
  specific_factors = list(EX = c("y1","y2","y3"),
                          MD = c("y4","y5","y6")),
  indicators       = paste0("y", 1:6)
)
print(tgt)


bifactory documentation built on Oct. 28, 2026, 1:06 a.m.