lnormimp: Truncated lognormal distribution imputation. (Herbers et al....

View source: R/lnormimp.R

lnormimpR Documentation

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

Description

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

Usage

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'


nx10/lnormimp-r documentation built on Feb. 8, 2024, 1 p.m.