randlr: Impute BDL data using various distributions

Description Usage Arguments Value

View source: R/smartImpute.R

Description

Function to impute BDL data, using either uniform or truncated lognormal distributions The latter comes from the fitdistrplus::fitdistcens function

Usage

1
randlr(lrdf, distr = c("unif", "norm", "lnorm"))

Arguments

lrdf

data.frame with columns "left" and "right"

Value

vector with length nrow(lrdf) that contains original and imputed values THIS VERSION RETURNS NA when distribution cannot be fit. An earlier version used uniform when this happened.


markwh/markstats documentation built on May 21, 2019, 12:26 p.m.