Serialise a model specification to JSON
Arguments
- model
An
sframe_model_spec()object.- pretty
Logical. Whether to pretty-print the JSON.
See also
Other Models and syntax functions:
sframe_add_model(),
sframe_construct(),
sframe_covariance(),
sframe_indirect_effect(),
sframe_model_outline(),
sframe_model_spec(),
sframe_path(),
sframe_syntax_cfa(),
sframe_syntax_efa(),
sframe_syntax_pls(),
sframe_syntax_result(),
sframe_syntax_sem(),
sframe_validate_model()
Examples
m <- sframe_model_spec("cb1", type = "cb_sem",
constructs = list(sframe_construct("sq", items = c("sq_1", "sq_2"))))
cat(sframe_model_json(m))