Learn R Programming

multic (version 0.4.2)

expand.data: Create a "bootstrapped" version of a dataset to be used in multic.

Description

When using multic to bootstrap over families, an appropriate data set is needed. By providing a random set of famids, expand.data creates such a dataset.

Usage

expand.data(famids, d.frame)

Arguments

famids
famids is a character or integer vector that specifies the family order in a "bootstrapped" fashon. Each index of famids is the famid (family identifier) from the original dataset not the index of the family. An example famids argument would be fa
d.frame
the data.frame that holds the family structure and phenotype data. This should be the dataset that was used to sample famid.

Value

  • a data.frame that contains the bootstrapped version of the input dataset

See Also

expand.multic

Examples

Run this code
famids <- sample(famid, length(unique(famid)), replace = TRUE)
expaned.ped.phen <- expand.data(famids, ped.phen)

Run the code above in your browser using DataLab