View source: R/calc_missing_prop.R
calc_missing_prop | R Documentation |
There is a situation that we want to make prediction for incomplete observation, which a linear model don't support. However, we try to approximately predict those incomplete observation with small missing part. So, this function is used to calculate the missing proportion of predictors, the weight fo each predictor is from relative weight analysis.
calc_missing_prop(data_wider, RelativeWeight, digits)
data_wider |
Data.frame, which each row contains all the observations of a single person. |
RelativeWeight |
Data.frame, generate by |
digits, |
Numerical, the digits missing_prop reserved |
A vector with length nrow(data_wider), indicate the missing proportion of predictors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.