GenData: Generate Data from factor loadings

Description Usage Arguments Value

View source: R/GenData.R

Description

GenData returns a data.frame of observed scores based on matrix of factor loadings, effects matrix. The heart of this function was adapted from http://personality-project.org/r/r.datageneration.html

Usage

1
GenData(fmodel, effect, samplesize, inames = NULL)

Arguments

fmodel

Matrix of factor loadings for all items

effect

effects matrix

samplesize

number of observations generated

names

names of variables

Value

data.frame of observed scores


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