Description Usage Arguments Value Author(s) Examples
View source: R/imputeConstant.R
function to impute BLOQ observations by replacing them with a constant value.
1 | imputeConstant(inputData, LOQ, constantValue)
|
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 |
constantValue |
scalar, the constant value which replaces all BLOQ's, default is LOQ/2 |
the imputed dataset: a numeric matrix or data frame of the size n by J (n the sample size and J the number of time points)
Vahid Nassiri, Helen Yvette Barnett
1 2 3 4 5 6 | # generate data from Beal model with only fixed effects
set.seed(111)
genDataFixedEffects <- simulateBealModelFixedEffects(10, 0.693,
+ 1, 1, seq(0.5,3,0.5))
# replacing BLOQ's with LOQ/2
imputeConstant(genDataFixedEffects, 0.1, 0.1/2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.