imputeDF: Impute Censored Values in dataframes

View source: R/imputeCensored.R

imputeDFR Documentation

Impute Censored Values in dataframes

Description

Impute value for multiply censored data in data frames

Usage

imputeDF(df, imputeOption = "mid")

Arguments

df

dataframe

imputeOption

imputation method [default= "mid"], valid impute options are "lower", "upper", "mid", "norm", "lnorm"

Details

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.

Value

dataframe where fields with censored data (i.e., Surv objects) are transformed into a simple numeric fields

See Also

makeSurvDF, unSurvDF , unSurv, impute, imputeDF,

Examples

## 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)

leppott/baytrends documentation built on Nov. 2, 2024, 6:42 p.m.