Estimates missing variable values from a predictor using a linear model.
kl_estimate_na(
x = kootlake::bulltrout,
variable = "KasloRedds",
predictor = "KasloCounter"
)
A data frame with columns of the variable and predictor.
A string of the name of the variable column.
A string of the name of the predictor column.
The original data frame with missing variable values replaced by the estimated value.