Skip to contents

Generate seminr PLS-SEM syntax

Usage

sframe_syntax_pls(model, data_name = "data", nboot = NULL, seed = 123)

Arguments

model

An sframe_model_spec() object of type "pls_sem".

data_name

Name of the data object in generated R code.

nboot

Number of bootstrap samples.

seed

Random seed for bootstrap syntax.

Value

An R syntax string for seminr.

Examples

m <- sframe_model_spec(
  "pls1", type = "pls_sem",
  constructs = list(
    sframe_construct("sq", items = c("sq_1", "sq_2", "sq_3")),
    sframe_construct("sat", items = c("sat_1", "sat_2"))
  ),
  paths = list(sframe_path("sq", "sat"))
)
cat(sframe_syntax_pls(m))