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)
how many rows
how many columns
the mean of the multivariate normal distribution
the variance-covariance matrix of the normal distribution
how you would like the variables to be named in the result
number of places to round the generated values
A data frame of generated data
This function generates correlated normal data to serve as a model matrix in a regression model.