ancova.random.data(mu.y, mu.x, sigma.y, sigma.x, rho, J, n, randomized = TRUE)
mvrnorm
in the MASS
package in an internal function, and
thus it requires the MASS
package be installed.This function assumes homogeneous covariance matrix among groups, in both the randomized design and non-randomized design contexts.
mvrnorm
in the MASS
package random.data <- ancova.random.data(mu.y=c(3,5), mu.x=10, sigma.y=1,
sigma.x=2, rho=.8, J=2, n=20)
Run the code above in your browser using DataLab