group_rhs: Group all partable rows with same parent (left-hand side).

Description Usage Arguments Examples

View source: R/make_lav_syntax.R

Description

For each unique value of lhs column, make lavaan string syntax of form, "lhs =~ label1*rhs1 + label2*rhs2 + ...", where symbol in this case is "=~".

Usage

1

Arguments

d

data.frame specifying lavaan partable

symbol

operator to subset data on first

Examples

1
2
3
partable <- make_edge('A', '=~', c('A1', 'A2'), 'lam_A')
group_rhs(partable, '=~')
# "A =~ lam_A*A1 + lam_A*A2"

machow/lavtools documentation built on May 21, 2019, 10:51 a.m.