View source: R/wt_sum_predict.R
wt_sum_predict | R Documentation |
This is a attempt to make prediction to observation with missing predictors using the weighted sum from a linear model
wt_sum_predict(data_wider, model)
data_wider |
Data.frame, which each row contains all the observations of a single person. |
model |
A lm object, the fitted linear model. |
A vector with length nrow(data_wider), indicate the weighted sum prediction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.