R/test_data.R

Defines functions get_test_data

#' @keywords internal
get_test_data <- function(n = 100L) {
    vcov <- matrix(0.5, nrow = 6, ncol = 6)
    diag(vcov) <- 1
    eta <- MASS::mvrnorm(n, rep(0, 6), vcov)
    eta <- as.data.frame(eta)
    names(eta) <- paste0("var", 1:6)
    return(eta)
}

Try the semnova package in your browser

Any scripts or data that you put into this service are public.

semnova documentation built on July 1, 2020, 10:43 p.m.