cor_gen: Generation of random correlation matrix

View source: R/cor_gen.R

cor_genR Documentation

Generation of random correlation matrix

Description

Creates a random correlation matrix.

Usage

cor_gen(n_var, cov_bounds = c(-1, 1))

Arguments

n_var

integer number of variables.

cov_bounds

a vector containing the bounds of the covariance matrix.

Details

The result from cor_gen can be used directly with the cor_matrix argument of questionnaire_gen.

Examples

cor_gen(n_var = 10)


lsasim documentation built on Aug. 22, 2023, 5:09 p.m.