genXdata | R Documentation |
This function generates correlated normal data to serve as a model matrix in a regression model.
genXdata(
n,
nvar = 1,
mu = rep(0, nvar),
Sigma = diag(length(mu)),
varnames = paste("x", 1:length(mu), sep = ""),
roundto = NULL
)
n |
how many rows |
nvar |
how many columns |
mu |
the mean of the multivariate normal distribution |
Sigma |
the variance-covariance matrix of the normal distribution |
varnames |
how you would like the variables to be named in the result |
roundto |
number of places to round the generated values |
This function generates correlated normal data to serve as a model matrix in a regression model.
A data frame of generated data
G. Jay Kerns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.