Skip to contents

This function creates a universe specification with a given number of variables and a given crud distribution.

Usage

create_universe(nVars, rCorDistFun = rnorm, ...)

# S3 method for raven_universe_spec
print(x, ...)

Arguments

nVars

The number of variables in the universe.

rCorDistFun

The function to call to produce the correlations between the variables in the universe. As its first argument, this function has to accept the number of values to produce, and any subsequent arguments can be passed in .... Optionally, you can specify a number, which is then used for all correlations.

...

Additional arguments to pass to the rCorDistFun function.

Value

An object of class raven_universe_spec.

Examples

raven::create_universe(3, sd = .1)
#> A `raven` universe specification of 3 variables with mean crud r = 0.019.