structure_predictions | R Documentation |
This function structures data for testing a prediction. Deals with predictions that are a matrix for mediation analysis. Also properly format factor variables.
structure_predictions(formula, data, predictions, method)
formula |
The formula used to identify all variables that are in the model that will be run. |
data |
The data used to create predictions. |
predictions |
The predictions to test. This should be the object returned from 'pr_list'. |
method |
A string indicating how variables not in 'predictions' should be treated. There are two options; "observed values" and "mean." |
A dataframe
Other internal functions:
get_coef()
,
get_data()
,
get_draws()
,
get_formula()
,
get_link()
,
get_vcov()
,
results_coefficients()
,
results_contrasts()
,
results_predictions()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.