ped.simu: Simulation Function

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function simulates both phenotypes and genotypes of a combination of family and unreated data.

Usage

1
2
ped.simu(hap = hap, pos = pos, nfa = 100, nun = 400, h2 = 0.03,
           rfreq = 0.02, hrisk = 0.1)

Arguments

hap

Haplotype information.

pos

Anotated position information.

nfa

Number of nulcear families.

nun

Number of unrelated individuals

h2

The proportion of variation that can be explained by the simualted genetic region.

rfreq

The rare variants threshold of MAF used in the simulation

hrisk

The proportion of risk haplotypes in the haplotype pool.

Value

It returns a pedigree matrix ready for use by functions vc.score and fgls in this package.

Author(s)

Xuefeng Wang

References

T Feng, RC Elston and X Zhu. 2011. Detecting rare and common variants for complex traits: sibpair and odds ratio weighted sum statistics (SPWSS, ORWSS). Genet Epidemiol, 35: 398-409.

See Also

vc.score

Examples

1
2
3
		Tped<-ped.simu(hap,pos,h2=0.02)
		vc.score(Tped,100,400)
		fgls(Tped,100,400)	

fassoc documentation built on May 2, 2019, 4:53 p.m.