markvanderloo / simputation

Making imputation easy
GNU General Public License v3.0
91 stars 11 forks source link

add proper ratio-imputation #14

Open markvanderloo opened 7 years ago

markvanderloo commented 7 years ago

Ratio imputation is based on a weighted single regressio regression Y = bX with weights 1/X. Would be nice to have a impute_ratio function. Also lm makes a different choice in selecting data under missingess than

b <- mean(Y,na.rm=TRUE)/mean(X,na.rm=TRUE)