wt_sum_predict: Predict by weighted sum

View source: R/wt_sum_predict.R

wt_sum_predictR Documentation

Predict by weighted sum

Description

This is a attempt to make prediction to observation with missing predictors using the weighted sum from a linear model

Usage

wt_sum_predict(data_wider, model)

Arguments

data_wider

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

model

A lm object, the fitted linear model.

Value

A vector with length nrow(data_wider), indicate the weighted sum prediction


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