Function to adjust for missing data. Observations with phenotype or structure adjustments missing are removed. Missing covariates are imputed to the median of the observed values. An observation missing genotype information is excluded from association testing only at those loci where genotype is unobserved.
missFilter(y, G, X, S)
Numeric phenotype vector
Snp by obs genotype matrix.
Obs by feature covariate matrix.
Obs by feature structure matrix.