View source: R/tidyMS_missigness.R
interaction_missing_stats | R Documentation |
compute missingness statistics per hierarchy and factor level
interaction_missing_stats(
pdata,
config,
factors = config$table$factor_keys_depth(),
hierarchy = config$table$hierarchy_keys(),
workIntensity = config$table$get_response()
)
pdata |
data.frame |
config |
AnalysisConfiguration |
factors |
factor to include (default up to factor depth) |
hierarchy |
hierarchy to include (default up to hierarchy depth) |
workIntensity |
work intensity column |
istar <- sim_lfq_data_peptide_config()
config <- istar$config
analysis <- istar$data
config$parameter$qVal_individual_threshold <- 0.01
xx <- prolfqua::remove_large_QValues(analysis,
config)
xx <- complete_cases(xx, config)
x <- interaction_missing_stats(xx, config)$data |> dplyr::arrange(desc(nrNAs))
nrow(x)
tmp <- interaction_missing_stats(xx, config,
factors= character(),
hierarchy = config$table$hierarchy_keys()[1])$data
stopifnot(nrow(tmp) == 10)
tmp <- interaction_missing_stats(xx, config,
hierarchy = config$table$hierarchy_keys()[1])$data
stopifnot(nrow(tmp) == length(unique(xx$protein_Id))* length(unique(xx$group_)))
stopifnot(sum(is.na(tmp$nrMeasured))==0)
tmp <- interaction_missing_stats(xx, config, factors = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.