predict_speeches_prob: Predict probabilities for multiple scenarios

Description Usage Arguments

Description

Predict probabilities for multiple scenarios

Usage

1
2
predict_speeches_prob(stanfit, data, fitted_values, a_num,
  model_pars = c("beta", "alpha", "a"))

Arguments

stanfit

a stanfit object.

data

the data used to create the stanfit object.

fitted_values

a matrix of fitted values for the betas. Each row should be a different scenario.

a_num

integer of the a speaker level to fit for.

model_pars

character vector of model parameters to use in in the predicted probabilities. Note: should include parameters beginning with "beta" that correspond to the fitted values,


christophergandrud/StanSpeeches documentation built on May 13, 2019, 7:01 p.m.