get_true_beta {ALLSPICER} | R Documentation |
get_true_beta
Description
simulation function: simulate true effect size information of 'n_var' variants for two phenotypes
Usage
get_true_beta(n_var, c, pi, sigma, null = TRUE)
Arguments
n_var |
total number of variants |
c |
slope between the two sets of variant effect sizes, only applicable when 'null' == TRUE |
pi |
probability of variant of having no effect on the phenotype |
sigma |
variance of the two sets of effect sizes |
null |
whether to simulate data under the null hypothesis (no linear relationship) or the alternative hypothesis |
Value
A 2x'n_var' matrix of effect size information for 'n_var' variants (first row corresponds to the first phenotype, second row corresponds to the second phenotype)
Examples
true_beta <- get_true_beta(n_var=100, c=0.6, pi=0.5, sigma=1, null=TRUE)
[Package ALLSPICER version 0.1.9 Index]