make_data | R Documentation |
Generate data using one of the four specified models from MCKEAGUE and QIAN paper
make_data(ss, dim, rho, model = 1, b = NULL)
ss |
sample size (number of generated observations) |
dim |
dimension of the generated data |
rho |
between x correlation |
model |
number indicating which model should be used |
b |
local alternative to be used |
A dataframe with outcome in the first column and covariates in the others. Data are generated according to the models described originally in McKeague and Qian (2015).
# Sample data null_dat <- make_data(ss = 100, dim = 10, rho = 0, model = 1) model_two_dat <- make_data(ss = 100, dim = 10, rho = 0, model = 2) model_three_dat <- make_data(ss = 100, dim = 10, rho = 0, model = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.