Group statistics and limit of detection
Group statistics and limit of detection
Details
Computes per-group statistics of the abundances and, from them, the limit of
detection (LOD) used by build_model_impute to impute groups
without observations.
Public fields
datadata
configconfig
probquantile of groups with one observed value to estimate LOD
statsdata.frame with group statistics
Methods
Method get_lod()
determine limit of detection computes quantile of abundances in groups with a single observation; without such groups, of the partly observed groups with the fewest observations, and when every group is complete or empty, the lowest group mean
Examples
dd <- prolfqua::sim_lfq_data_protein_config(Nprot = 100,weight_missing = 2)
#> creating sampleName from file_name column
#> completing cases
#> completing cases done
#> setup done
mh <- prolfqua::MissingHelpers$new(dd$data, dd$config, prob = 0.8)
xx <- mh$get_stats()
xx <- mh$get_lod()
dd <- prolfqua::sim_lfq_data_2factor_config(Nprot = 100,weight_missing = 0.1)
#> creating sampleName from file_name column
#> completing cases
#> completing cases done
#> setup done
mh <- prolfqua::MissingHelpers$new(dd$data, dd$config, prob = 0.8)
mh$get_stats()$interaction |> table()
#>
#> TreatmentA:BackgroundX TreatmentB:BackgroundX TreatmentA:BackgroundZ
#> 100 100 100
#> TreatmentB:BackgroundZ TreatmentA TreatmentB
#> 100 100 100
#> BackgroundX BackgroundZ
#> 100 100
mh$get_lod()
#> [1] 15.24351