View source: R/create.Fmatrix.R
create.Fmatrix | R Documentation |
It creates an F matrix to select observed variables for wls function.
create.Fmatrix(x, name, as.mxMatrix=TRUE, ...)
x |
A vector of logical type |
name |
Name of the matrix. If it is missing, "Fmatrix" will be used. |
as.mxMatrix |
Logical. If it is |
... |
Not used. |
Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>
as.mxMatrix
, create.mxMatrix
, wls
## Select the first 3 variables while the other 2 variables are latent.
create.Fmatrix(c(1,1,1,0,0))
# FullMatrix 'Fmatrix'
#
# @labels: No labels assigned.
#
# @values
# [,1] [,2] [,3] [,4] [,5]
# [1,] 1 0 0 0 0
# [2,] 0 1 0 0 0
# [3,] 0 0 1 0 0
#
# @free: No free parameters.
#
# @lbound: No lower bounds assigned.
#
# @ubound: No upper bounds assigned.
create.Fmatrix(c(1,1,1,0,0), as.mxMatrix=FALSE)
# [,1] [,2] [,3] [,4] [,5]
# [1,] 1 0 0 0 0
# [2,] 0 1 0 0 0
# [3,] 0 0 1 0 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.