Description Usage Arguments Value See Also Examples
Create lower-triangular constraints as used for the loadings matrix in confirmatory factor analysis.
1 | lowertri_constraint_matrix(n, factors = 1, ones = TRUE)
|
n |
Number of variables |
factors |
Number of factors |
ones |
If |
Matrix with n
rows and factors
columns, with
1's or Inf
on the diagonal, NA
below the diagonal, and
0's above the diagonal.
1 2 3 | constraints <- lowertri_constraint_matrix(3, 2)
constraints
flatten_constraints(constraints)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.