cleanFactors: cleanFactors

Description Usage Arguments Value

Description

Make factor analysis practice data.

Usage

1
2
cleanFactors(nsubjects = 300, nlatent = NA, nvars = NA, ndistract = NA,
  noiselevel = 0, garbage = FALSE)

Arguments

nlatent

Number of latent factors. By default generates a random number of factors between 2 and 6.

nvars

Number of measured variables (items) for each latent factor. By default generated a random number of variables for each factor. Assigning a value generates the same number of variables for each factor.

ndistract

Number of variable (items) not loading on any factor.

noiselevel

An integer to add noise to the structure matrix used to create the factor structure.

garbage

A boolean argument used to generate uniform data with some level of noise.

nsubject

Number of rows of data to simulate.

Value

A list of components.

sample

The sample dataset.

nlatent

The number of latent factors used to generate the dataset.

nvars

A vector of the number of variables in each factor.

ndistract

The number of variables not in the factor structure.

nsubjects

The number of subjects in the dataset.

noiselevel

The amount of noise added to the factor structure.


cognopod/walter documentation built on May 20, 2019, 11:16 a.m.