sim_data: Simulate MVN data

Description Usage Arguments Examples

View source: R/NRejections.R

Description

Simulates one dataset with standard MVN correlated covariates and outcomes.

Usage

1

Arguments

n

Number of rows to simulate

cor

Correlation matrix (e.g., from make_corr_mat)

Examples

1
2
3
4
5
6
7
8
cor = make_corr_mat( nX = 5,
nY = 2,
rho.XX = -0.06,
rho.YY = 0.1,
rho.XY = -0.1,
prop.corr = 8/40 )

d = sim_data( n = 50, cor = cor )

Example output



NRejections documentation built on July 9, 2020, 5:08 p.m.