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

Description Usage Arguments Value See Also Examples

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

1
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 famids <- sample(famid, length(unique(famid)), replace = TRUE). IMPORTANT NOTE: This sequence of famids must be the same as that passed to expand.multic. If they are not, the dataset and the external data will not match.

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

1
2
3
4
5
## Not run: 
famids <- sample(famid, length(unique(famid)), replace = TRUE)
expaned.ped.phen <- expand.data(famids, ped.phen)

## End(Not run)

multic documentation built on Jan. 15, 2017, 9:30 a.m.