Description Usage Arguments Details Value
Simulate a matrix of genotypes following a set of model parameters.
1 2 3 4 |
n_snps |
number of SNPs |
n_control |
number of controls |
n_case |
two-element vector; number of cases in subtypes 1 and 2 |
pars |
expected observed parameter values. If NULL, values are chosen randomly; |
q2SEd |
97.5% quantile (ie, +2SD) of population odds-ratios for subtype-differentiating SNPs. Corresponds to |
q2SEa1 |
97.5% quantile (ie, +2SD) of population odds-ratios for disease-causative SNPs which do NOT differentiate subtypes (category 2). Corresponds to |
q2SEa2 |
97.5% quantile (ie, +2SD) of population odds-ratios for disease-causative SNPs which DO differentiate subtypes (category 3). Corresponds to |
cor_st |
correlation (as opposed to covariance) between |
seed |
random seed; if NULL is set to clock time |
return_matrix |
if TRUE, returns a SNP matrix, otherwise returns Z_a and Z_d scores |
null_model |
if |
Sets global variable pars_true
containing 'true' parameter values, and or_true
containing details of underlying odds ratio distribution.
Either object of type SnpMatrix, in which indices are, in order: controls, case subtype 1, case subtype 2; or Z_d and Z_a scores in an n x 2 matrix, with Z[,1]=Z_d, Z[,2]=Z_a. Global variable pars_true
contains 'true' values of parameters of Z_a, Z_d distribution and can be used to start the fitting algorithm. Global variable or_true
contains values (pi0
,pi1
,q2SEd
,q2SEa1
,q2SEa2
,cor_st
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.