singleSNP: Simulating Single SNP Data

Description Usage Arguments Value Author(s)

View source: R/singleSNP.R

Description

Simulating Single SNP Data

Usage

1
2
singleSNP(size, geno_eff, grid = 0.01, c, MAF, pv = 0.5,
  cov_eff = 0.5)

Arguments

size

a numeric value of sample size.

geno_eff

a numeric value of genotype effect on phenotype.

grid

an interval of grid search (default=0.01; range: 0<grid<1). A lower value of grid gives denser intervals.

c

a numeric value of heterozygous genotype effect (0<=c<=1).

MAF

a numeric value of minor allele frequency (0<MAF<=0.5).

pv

a numeric value of prevalence of disease (default=0.5).

cov_eff

a numeric value of covariate effect on phenotype (default=0.5).

Value

a data set which consists of phenotype, genotype under additive assumption of genetic model, genotype under true genetic model, genotype matrix expanded with grid interval, and covariate.

Author(s)

Yeonil Kim


ykim03517/reSNP documentation built on Nov. 5, 2019, 1:20 p.m.