csem2seminr: seminr csem2seminr() function

Description Usage Arguments Value See Also Examples

View source: R/import_lavaan_syntax.R

Description

Converts lavaan syntax for composite models used by cSEM package to SEMinR model specifications

Usage

1
csem2seminr(lav_syntax)

Arguments

lav_syntax

A string specifying the composite model measurement and structure using lavaan syntax

Value

A SEMinR model.

See Also

estimate_pls

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
lav_syntax <- '
  Composite model
  Image <~ IMAG1 + IMAG2 + IMAG3 + IMAG4 + IMAG5
  Expectation <~ CUEX1 + CUEX2 + CUEX3
  Value  <~ PERV1  + PERV2
  Satisfaction <~ CUSA1 + CUSA2 + CUSA3

  # Structural model
  Satisfaction ~ Image + Expectation + Value
'

csem_model <- estimate_pls(mobi, model = csem2seminr(lav_syntax))

seminr documentation built on Sept. 5, 2021, 5:36 p.m.