calc_missing_prop: Calculate the missing proportion of predictors by relative...

View source: R/calc_missing_prop.R

calc_missing_propR Documentation

Calculate the missing proportion of predictors by relative weight

Description

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.

Usage

calc_missing_prop(data_wider, RelativeWeight, digits)

Arguments

data_wider

Data.frame, which each row contains all the observations of a single person.

RelativeWeight

Data.frame, generate by rwa::rwa(), contains the relative weight of each variable

digits,

Numerical, the digits missing_prop reserved

Value

A vector with length nrow(data_wider), indicate the missing proportion of predictors


Blockhead-yj/report.iqz documentation built on March 18, 2022, 5:30 a.m.