Learn R Programming

paramlink (version 0.3-1)

setSim: Simulation vector for 'linkdat' objects

Description

Functions to set and modify the simulation vector of a 'linkdat' object. This vector is used in 'linkage.power' and 'SNPsim', indicating for whom genotypes should be simulated.

Usage

setSim(x, simstatus)

swapSim(x, ids)

Arguments

x
a linkdat object
simstatus
either NULL, a logical, or a numeric consisting of 0's and 2's (where 2=included and 0=excluded in the simulation). Recycled if necessary.
ids
the individual(s) whose simulation status should be swapped.

Value

  • The modified linkdat object.

Details

If the simulation vector of a linkdat object x has been set, the included individuals are marked by a star in the pedigree plot.

See Also

linkage.power, SNPsim

Examples

Run this code
data(toyped)
x = linkdat(toyped)
x = setSim(x, TRUE)
x = swapSim(x, 1:2)

Run the code above in your browser using DataLab