
Simulation of disease parameters
sim_disease.Rd
This function is used to simulate disease parameters. If not predetermined, the function will randomly calculate causal SNPs, MAF values and beta values.
Arguments
- n_snp
Integer specifying amount of SNPs.
- prevalence
Number specifying prevalence of disease in the population.
- h2
Number specifying heritability parameter.
- causal
Vector of predetermined causal SNPs (0 if not causal, 1 if causal). Leave empty to get random causal SNPs.
- causal_n
Integer specifying amount of causal SNPs if no causal param given. Default value is 10 procent of total SNPs.
- maf
Vector of predetermined Minor Allele Frequencies. Leave empty to get random MAF.
- maf_low
Number specifying lower bound for MAF if none given.
- maf_high
Number specifying upper bound for MAF if none given.