| fitted.clmstan | R Documentation |
Returns expected category probabilities for each observation.
This is equivalent to predict(object, type = "probs", summary = TRUE).
## S3 method for class 'clmstan'
fitted(
object,
newdata = NULL,
summary = TRUE,
robust = FALSE,
probs = c(0.025, 0.975),
ndraws = NULL,
...
)
object |
A |
newdata |
Optional data frame for prediction. If |
summary |
Logical. If |
robust |
Logical. If |
probs |
Numeric vector of probabilities for quantiles.
Default is |
ndraws |
Number of posterior draws to use. If |
... |
Additional arguments (currently ignored). |
If summary = TRUE (default): A data frame with N rows and
columns for each category probability (P[Y=1], P[Y=2], etc.).
If summary = FALSE: An S x N x K array of probability draws.
predict.clmstan(), posterior_predict.clmstan()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.