Centers dosage matrix, e.g. for use in whole-genome regressions like rrBLUP

centerDosage(M)

Arguments

M

dosage matrix. Assumes SNPs in M coded 0, 1, 2 (requires rounding dosages to integers). M is Nind x Mrow, numeric matrix, with row/columanes to indicate SNP/ind ID

Value

Examples

centeredM<-centerDosage(M)
#> Error in is.data.frame(x): object 'M' not found