Skip to content

Commit 63e8635

Browse files
authored
docs(impute): Update documentation w.r.t. censoredInt and MBimpute (#204)
1 parent b05b398 commit 63e8635

7 files changed

Lines changed: 92 additions & 74 deletions

R/dataProcess.R

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,18 @@
4141
#' variance among intensities from features. FALSE means that we cannot assume equal
4242
#' variance among intensities from features, then we will account for heterogeneous
4343
#' variation from different features.
44-
#' @param censoredInt Missing values are censored or at random.
45-
#' 'NA' (default) assumes that all 'NA's in 'Intensity' column are censored.
46-
#' '0' uses zero intensities as censored intensity.
47-
#' In this case, NA intensities are missing at random.
48-
#' The output from Skyline should use '0'.
49-
#' Null assumes that all NA intensites are randomly missing.
50-
#' @param MBimpute only for summaryMethod = "TMP" and censoredInt = 'NA' or '0'.
51-
#' TRUE (default) imputes missing values with 'NA' or '0' (depending on censoredInt option)
52-
#' by Accelerated failure model. If set to FALSE, no missing values are imputed.
53-
#' FALSE is appropriate only when missingness is assumed to be at random.
44+
#' @param censoredInt Indicates how censored missing values are encoded in the
45+
#' 'Intensity' column. 'NA' (default) treats all NA intensities as left-censored
46+
#' (i.e., below the limit of detection). '0' treats zero intensities as
47+
#' left-censored; in this case NA intensities are assumed to be missing at
48+
#' random and are not censored. Skyline output should use '0'. NULL assumes
49+
#' that all missing values are missing at random — no values are treated as
50+
#' censored, and imputation is disabled (MBimpute is ignored).
51+
#' @param MBimpute only for summaryMethod = "TMP" and censoredInt = 'NA' or '0'.
52+
#' TRUE (default) imputes censored missing values using an Accelerated Failure
53+
#' Time model. FALSE excludes censored observations from summarization entirely,
54+
#' treating them as missing at random; no imputed values are introduced.
55+
#' Has no effect when censoredInt = NULL, since no values are considered censored.
5456
#' See MSstats vignettes for recommendations on which imputation option to use.
5557
#' @param remove50missing only for summaryMethod = "TMP". TRUE removes the proteins
5658
#' where every run has at least 50\% missing values for each peptide. FALSE is default.
@@ -186,17 +188,20 @@ dataProcess = function(
186188
#' variance among intensities from features. FALSE means that we cannot assume
187189
#' equal variance among intensities from features, then we will account for
188190
#' heterogeneous variation from different features.
189-
#' @param censored_symbol Missing values are censored or at random.
190-
#' 'NA' (default) assumes that all 'NA's in 'Intensity' column are censored.
191-
#' '0' uses zero intensities as censored intensity.
192-
#' In this case, NA intensities are missing at random.
193-
#' The output from Skyline should use '0'.
194-
#' Null assumes that all NA intensites are randomly missing.
195-
#' @param remove50missing only for summaryMethod = "TMP". TRUE removes the proteins
191+
#' @param censored_symbol Indicates how censored missing values are encoded in
192+
#' the 'Intensity' column. 'NA' (default) treats all NA intensities as
193+
#' left-censored (i.e., below the limit of detection). '0' treats zero
194+
#' intensities as left-censored; in this case NA intensities are assumed to be
195+
#' missing at random and are not censored. Skyline output should use '0'. NULL
196+
#' assumes that all missing values are missing at random — no values are treated
197+
#' as censored, and imputation is disabled (impute is ignored).
198+
#' @param remove50missing only for summaryMethod = "TMP". TRUE removes the proteins
196199
#' where every run has at least 50\% missing values for each peptide. FALSE is default.
197-
#' @param impute only for summaryMethod = "TMP" and censoredInt = 'NA' or '0'.
198-
#' TRUE (default) imputes 'NA' or '0' (depending on censoredInt option) by Accelated failure model.
199-
#' FALSE uses the values assigned by cutoffCensored
200+
#' @param impute only for summaryMethod = "TMP" and censored_symbol = 'NA' or '0'.
201+
#' TRUE (default) imputes censored missing values using an Accelerated Failure
202+
#' Time model. FALSE excludes censored observations from summarization entirely,
203+
#' treating them as missing at random; no imputed values are introduced.
204+
#' Has no effect when censored_symbol = NULL, since no values are considered censored.
200205
#' @param numberOfCores Number of cores for parallel processing. When > 1,
201206
#' a logfile named `MSstats_dataProcess_log_progress.log` is created to
202207
#' track progress. Only works for Linux & Mac OS. Default is 1.

man/MSstatsSummarizeSingleTMP.Rd

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MSstatsSummarizeWithMultipleCores.Rd

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MSstatsSummarizeWithSingleCore.Rd

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/dataProcess.Rd

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/dot-getNonMissingFilterStats.Rd

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/dot-runTukey.Rd

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)