View source: R/imputeCensored.R
imputeDF | R Documentation |
Impute value for multiply censored data in data frames
imputeDF(df, imputeOption = "mid")
df |
dataframe |
imputeOption |
imputation method [default= "mid"], valid impute options are "lower", "upper", "mid", "norm", "lnorm" |
The imputeOption values of "lower"
, "upper"
and "mid"
impute the lower limit, upper limit, and midpoint between the lower and upper
limit. In the context of typical water quality data, these options would be
equivalent to zero, detection limit and 1/2 detection limit substitution.
Options for substituting the normal ["norm"
] or lognormal
["lnorm"
] expectation can also be used.
dataframe where fields with censored data (i.e., Surv objects) are transformed into a simple numeric fields
makeSurvDF
, unSurvDF
, unSurv
, impute
, imputeDF
,
## Not run:
df <- dataCensored[1:20, ]
df.lower <- imputeDF(df,'lower')
df.mid <- imputeDF(df,'mid')
df.upper <- imputeDF(df,'upper')
df.norm <- imputeDF(df,'norm')
df.lnorm <- imputeDF(df,'lnorm')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.