as.data.frame | R Documentation |
Function to coerce an object created with specify_sem
to
a data frame.
## S3 method for class 'singleClass'
as.data.frame(x, ...)
## S3 method for class 'semm'
as.data.frame(x, ...)
## S3 method for class 'nsemm'
as.data.frame(x, ...)
x |
structural equation model of class |
... |
additional arguments. |
Returns a data frame with first column label
and one column for
each latent class labeled class1
, class2
and so on.
specify_sem
, create_sem
# specify model
model <- specify_sem(num.x = 6, num.y = 3, num.xi = 2, num.eta = 1,
xi = "x1-x3,x4-x6", eta = "y1-y3", interaction = "eta1~xi1:xi2")
# coerce to data frame
as.data.frame(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.