Description Usage Arguments Value Examples
Data Simulation
1 2 3 4 5 6 7 8 9 10 11 |
n |
Number of subjects. |
K |
Number of SNVs. |
prop |
Proportion of true causal/associated SNVs. |
strg |
Effect size. SNV effects are selected from U(-strg, strg) distribution. |
binary |
Idicator of whether the trait is binary. |
case |
Number of cases if binary trait is simulated. Default is n/2. |
corr |
Correlation matrix of the underlying multivariate normal distribution. Default is a first order autoregressive structure with adjacent correlation 0.9. |
maf |
Minor allele frequencies for the SNVs. |
beta |
SNV effects including the constant. If beta is given, K, prop and strg should be missing; otherwise, beta will be overwritten. |
A list object.
A n by K matrix with counts of minor alleles.
A vector with simulated traits for n subjects.
Indexes for columns with no variation. These columns should be removed if SNV is further used by perm_score, wAF and wAFd functions.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.