This function summarizes the missing data in a methyl_surro object. It identifies probes with partial missing data (missing observations) and probes missing from all samples (missing probes).
Value
A list with two elements:
- missing_obs
A named numeric vector with the proportion of missing observations for each probe where this value is greater than 0.
- missing_probes
A character vector of probes that are missing in all samples
Examples
# Load Methylation Beta Matrix
data(beta_matrix_miss, package = "MethylSurroGetR")
# Load Weights from a Named Vector
data(wts_vec_lin, package = "MethylSurroGetR")
# Build the methyl_surro Object
surrogate <- surro_set(methyl = beta_matrix_miss,
weights = wts_vec_lin,
intercept = "Intercept")
# Summarizing Missing Values
missing_summary <- methyl_miss(methyl_surro = surrogate)
print(missing_summary)
#> $missing_obs
#> cg02 cg07
#> 0.6 0.2
#>
#> $missing_probes
#> [1] "cg03" "cg06" "cg11" "cg15" "cg18"
#>