calculate_predictions | R Documentation |
Calculate and transform predictions
calculate_predictions(
newdata,
model,
treatment_values,
pred_fun,
coefs_mat,
matrix_n_col
)
newdata |
New data to predict outcome |
model |
GLM object |
treatment_values |
Named vector of value to insert into |
pred_fun |
Function to transform prediction matrix |
coefs_mat |
Matrix of coefficients corresponding to |
matrix_n_col |
Expected number of column after prediction. |
A matrix with transformed predicted values. Number of columns corresponds
to the number of rows of coefs_mat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.