Misclassifies marker data in objects of class autoMarker or autoCross
Misclassifies marker data in objects of class autoMarker or autoCross
Marker data are misclassified at a specified rate for objects of class simAutoMarkers or simAutoCross. The rate may be specified either as a proportion of missing at random or a proportion of columns and rows with specified proportions of missings.
x: object of class simAutoMarkers or simAutoCross, or a matrix with dominant markers scored as 0 or 1
misclass: proportion misclassified specified as for na.proportion (Default: 0)
bands.missed: proportion of bands that are not scored when they are actually present. Note this is applied to correctly specified markers after markers are misclassified (Default: 0)
parents: if TRUE then misclassify parental alleles, otherwise misclassify offspring marker alleles
parent.cols: for object of simAutoClass the columns containg parental markers
seed: random number generator (RNG) state for random number which will be set at start to reproduce results
Returns
returns object of class simAutoMarkers or simAutoCross, or a matrix with dominant markers scored as 0 or 1 with extra components - misclass.info: list with components
* `proportion`numeric proportion misclassified
* `index`indicates which markers were set as misclassified
* `bands.proportion`numeric proportion marker bands missed
* `bands.index`indicates which markers bands were missed
* `call`matches arguments when function called
* `time.generated`time/date when misclassifieds added
* `seed`seed for random number generation