MissingHelpers | R Documentation |
compute group mean by LOD
compute group mean by LOD
weight lod by nr of NA's $(LOD * nrNas + meanAbundance *nrObs)/(nrMeasured)$
data
data
config
config
prob
quantile of groups with one observed value to estimate LOD
keep
stats which might be time consuming to compute
weighted
should we weight the LOD
keep
stats which might be time consuming to compute
new()
initialize
MissingHelpers$new(data, config, prob = 0.5, weighted = TRUE)
data
data
config
config
prob
default 0.5, median of groups with one observed value
weighted
should group average be computed used weighting, default TRUE.
get_stats()
MissingHelpers$get_stats()
get_LOD()
MissingHelpers$get_LOD()
impute_weighted_lod()
MissingHelpers$impute_weighted_lod()
impute_lod()
MissingHelpers$impute_lod()
get_poolvar()
MissingHelpers$get_poolvar(prob = 0.75)
get_contrast_estimates()
get contrast estimates
MissingHelpers$get_contrast_estimates(Contrasts)
Contrasts
named array with contrasts
get_contrasts()
MissingHelpers$get_contrasts(Contrasts, confint = 0.95, all = FALSE)
clone()
The objects of this class are cloneable with this method.
MissingHelpers$clone(deep = FALSE)
deep
Whether to make a deep clone.
Contrasts <- c("group.b-a" = "group_A - group_B", "group.a-ctrl" = "group_A - group_Ctrl")
dd <- prolfqua::sim_lfq_data_protein_config(Nprot = 100,weight_missing = 2)
mh <- prolfqua::MissingHelpers$new(dd$data, dd$config, prob = 0.8,weighted = TRUE)
mh$get_stats()
mh$get_LOD()
mh$impute_weighted_lod()
mh$impute_lod()
mh$get_poolvar()
bb <- mh$get_contrast_estimates(Contrasts)
mh$get_contrasts(Contrasts)
dd <- prolfqua::sim_lfq_data_2Factor_config(Nprot = 100,weight_missing = 0.1)
Contrasts <- c("c1" = "TreatmentA - TreatmentB",
"C2" = "BackgroundX- BackgroundZ",
"c3" = "`TreatmentA:BackgroundX` - `TreatmentA:BackgroundZ`",
"c4" = "`TreatmentB:BackgroundX` - `TreatmentB:BackgroundZ`"
)
mh <- prolfqua::MissingHelpers$new(dd$data, dd$config, prob = 0.8,weighted = TRUE)
mh$get_stats()$interaction |> table()
mh$get_contrast_estimates(Contrasts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.