Description Usage Arguments Value Author(s) Examples
function to impute BLOQ's. The user can define column-specific methods to impute the BLOQ's.
1 | imputeBLOQ(inputData, LOQ, imputationMethod, progressPrint = FALSE, ...)
|
inputData |
numeric matrix or data frame of the size n by J (n the sample size and J the number of time points) the input dataset |
LOQ |
scalar, limit of quantification value |
imputationMethod |
could be a single string or a vector of strings with the same length as the number of time points (ncol(inputData)). If it is left blank, then the imputation is done using kernel density estimation method for the columns with at least one non-BLOQ component. For all the rest (only BLOQ) the constant imputation is used. The allowed values are "constant", "ros", "kernel", "cml" corresponding to constant imputation, imputing using regression on order statistics, imputing using kernel density estimator, and imputing using censored maximum likelihood, respectively. |
progressPrint |
logical variable indicating whether the imputation progress should be printed or not. |
... |
any other argument which should be changed according to the input arguments regarding the functions corresponding to different imputation methods. |
a list with two components: imputed dataset, and the methods used to impute each column.
Vahid Nassiri, Helen Yvette Barnett
1 2 3 4 5 6 7 8 | set.seed(111)
inputData <- simulateBealModelFixedEffects(10, 0.693,1, 1, seq(0.5,3,0.5))
LOQ = 0.125
imputeBLOQ(inputData, LOQ,
imputationMethod = c("cml", "ros", "kernel","constant", "constant", "constant"),
maxIter = 500, isMultiplicative = TRUE, constantValue = LOQ)
imputeBLOQ(inputData, LOQ, maxIter = 500, isMultiplicative = TRUE,
constantValue = LOQ/5, epsilon = 1e-04)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.