| make.snpdata {barkse} | R Documentation |
Simple logistic regression simulation.
make.snpdata(y, X, types, ncats, classification, delta, names)
y |
n*1, the response vector |
X |
n*p, the covariate matrix |
types |
vector of the types of the variables (blind) for the
model -1: continuous; 1: ordered/binary; 2: non-ordered |
ncats |
vector of the number of categories for all variables
integers for categorical variable, scale (sd) for continous variable |
classification |
True/False for classificaion/regression problems |
delta |
NULL default, vector of the 0/1, simulated model specification |
names |
NULL default, vector of strings, names of the variables |
Returns a snpdata class, which is a list of
y |
n*1, 0/1 response |
xid |
n*1, 1~m row index of x in xunique matrix |
xunique |
m*p, unique covariate matrix |
nys |
m*3, number of y=0/1/* with certain covariate |
types |
p*1, 1/2 variable type ordered/non-ordered |
ncats |
p*1, number of categories in each variable |
delta |
p*1, 0/1 if known the true model in simulation |