GenStructure: Generate Effects matrix

Description Usage Arguments Value

View source: R/GenStructure.R

Description

GenStructure returns an effects matrix, based on intercorrelations and number of factors

Usage

1
2
GenStructure(nfactors = 5, rfactors = 0, r_norm = FALSE,
  r_norm_sd = 0.015)

Arguments

nfactors

Number of factors

rfactors

Intercorrelations between factors. Default is 0

r_norm

If TRUE, generate normally distributed factor loadings with mean loading and sd r_norm_sd. Does not check if correlation matrix is positive definite.

r_norm_sd

If r_norm is TRUE, standard deviation for normally distributed intercorrelations.

Value

matrix of factors and their intercorrelations.


smasongarrison/enumR documentation built on Feb. 3, 2021, 10:03 p.m.