make_data {amp}R Documentation

Generate data using one of the four specified models from MCKEAGUE and QIAN paper

Description

Generate data using one of the four specified models from MCKEAGUE and QIAN paper

Usage

make_data(ss, dim, rho, model = 1, b = NULL)

Arguments

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

Value

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).

Examples

# 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)


[Package amp version 1.0.0 Index]