Arguments
dtOld
Data table that is the new columns will be appended to.
idname
Character name of id field, defaults to "id".
mu
A vector of means. The length of mu must be nvars.
sigma
Standard deviation of variables. If standard deviation differs for
each variable, enter as a vector with the same length as the mean vector mu. If
the standard deviation is constant across variables, as single value can be entered.
corMatrix
Correlation matrix can be entered directly. It must be symmetrical and
positive semi-definite. It is not a required field; if a matrix is not provided, then a
structure and correlation coefficient rho must be specified.
rho
Correlation coefficient, -1
corstr
Correlation structure of the variance-covariance matrix
defined by sigma and rho. Options include "ind" for an independence
structure, "cs" for a compound symmetry structure, and "ar1" for an
autoregressive structure.
cnames
Explicit column names. A single string with names separated
by commas. If no string is provided, the default names will be V#, where #
represents the column.