Description Usage Arguments Value
this function simulate data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
age |
TRUE if covariate age should be included. simulated from N (40, 5) |
sex |
TRUE if covariate sex should be included. simulated from Bernoulli (p), where p is a random number between 0 and 1. |
n_homo |
number of homogeneous coefficients. |
n_heter |
number of heterogeneous coefficients. |
n_cont |
the number of continuous predictors. 0 if there will be no continuous predictors |
n_SNP |
the number of SNP predictors. 0 if there will be no SNP predictors |
rho |
a number between 0 and 1. controlling the degree of correlation between predictors |
sigma |
a positive number. controlling the added noise to the simulated response variable |
nlower |
the lower bound of the K sample sizes |
nupper |
the upper bound of the K sample sizes |
beta |
if the users wish to supply the coefficients on their own, enter a coefficient matrix where the columns containing the K coefficients of each predictor, for all genetic and non-genetic predictors. |
the simulated data
data |
the simulated data |
beta |
the simulated beta matrix |
homo_index |
the column numbers of homogeneous coefficients |
heter_index |
the column numbers of heterogeneous coefficients |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.