Truncated lognormal distribution imputation. (Herbers et al. 2020)

lnormimp(data, censn, cutoff, range = c(0, Inf), as_list = FALSE)

Arguments

data

Numeric data vector

censn

Number of lower and upper censored values: `c(lower, upper)`

cutoff

Lower and upper cutoff limits: `c(lower, upper)`

range

Lower and upper measurement range: `c(lower, upper)`

as_list

When set to `TRUE`, results will be returned as a list and separated into original `data`, imputed lower values `imp_lower`, and imputed upper values `imp_upper`

Value

'data' vector with imputed values appended. If `as_list` is set to `TRUE` results will be returned as a list and separated into original `data`, imputed lower values `imp_lower`, and imputed upper values `imp_upper`