predict_lme4_data | R Documentation |
predict_lme4_data()
generates a prediction vector from a merMod object and full
data frame, putting this prediction back into the data frame.
predict_lme4_data(df, model, pred_col, pred_upper_col, pred_lower_col)
df |
Data frame of model data. |
model |
An lme4 function that outputs a merMod object with that can be
passed to |
pred_col |
Column name to store predicted value. |
pred_upper_col |
Column name to store upper bound of confidence interval
generated by the |
pred_lower_col |
Column name to store lower bound of confidence interval
generated by the |
A data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.