| residuals.RprobitB_fit | R Documentation |
Computes observed choice indicators minus posterior mean occasion-level choice probabilities.
## S3 method for class 'RprobitB_fit'
residuals(object, ...)
object |
[ |
... |
Further arguments passed to |
A numeric matrix with one row per choice occasion and one column per
alternative. Rows with a missing response contain NA. For ranked data, the
indicator represents the first-ranked alternative.
set.seed(1)
model <- fit(
choice ~ x | 0, dgp_parameters = list(beta = c(x = 1)), chains = 1
)
head(residuals(model))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.