create_random_case_control_trait: Create a case-control trait with no relation between genotype...

View source: R/create_random_case_control_trait.R

create_random_case_control_traitR Documentation

Create a case-control trait with no relation between genotype and phenotype and a known minor allele frequency.

Description

Create a case-control with no relation between genotype and phenotype and a known minor allele frequency.

Usage

create_random_case_control_trait(mafs = 0.25, n_snps = 1)

Arguments

mafs

one or more minor allele frequencies. These allele frequencies must be ordered decreasingly, i.e. the MAF is at the first position, where the even rarer alleles are at the second and third positions.

Note that PLINK cannot handle triallelic nor quadallelic SNPs: PLINK will give a warning that it is setting the rarest alleles to missing.

n_snps

the number of SNPs, as can be checked by check_n_snps

Author(s)

Richèl J.C. Bilderbeek

Examples

create_random_trait()
create_random_trait(maf = 0.01)

richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.