Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

simulateMissingData

Simulates missing genotype data


Description

Simulate missing genotype data by removing some genotype data from the cross object

Usage

simulatemissingdata(cross, percentage = 5)

Arguments

cross

An object of class cross. See read.cross for details.

percentage

How much of the genotype data do we need to randomly drop?

Value

An object of class cross with percentage

Author(s)

See Also

Examples

data(multitrait)
multitrait <- fill.geno(multitrait)
multimissing5 <- simulatemissingdata(multitrait,perc=5)
perc <- (sum(nmissing(multimissing5))/sum(ntyped(multimissing5)))

qtl

Tools for Analyzing QTL Experiments

v1.48-1
GPL-3
Authors
Karl W Broman <broman@wisc.edu> and Hao Wu, with ideas from Gary Churchill and Saunak Sen and contributions from Danny Arends, Robert Corty, Timothee Flutre, Ritsert Jansen, Pjotr Prins, Lars Ronnegard, Rohan Shah, Laura Shannon, Quoc Tran, Aaron Wolen, Brian Yandell, and R Core Team
Initial release
2021-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.