Predict probabilities for multiple scenarios
1 2 | predict_speeches_prob(stanfit, data, fitted_values, a_num,
model_pars = c("beta", "alpha", "a"))
|
stanfit |
a |
data |
the data used to create the |
fitted_values |
a matrix of fitted values for the |
a_num |
integer of the |
model_pars |
character vector of model parameters to use in in the
predicted probabilities. Note: should include parameters beginning with
" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.