View source: R/model_evaluation.R
point_estimates | R Documentation |
This function computes the point estimates of an RprobitB_fit
.
Per default, the mean
of the Gibbs samples is used as a point estimate.
However, any statistic that computes a single numeric value out of a vector of
Gibbs samples can be specified for FUN
.
point_estimates(x, FUN = mean)
x |
An object of class |
FUN |
A function that computes a single numeric value out of a vector of numeric values. |
An object of class RprobitB_parameter
.
data <- simulate_choices(form = choice ~ covariate, N = 10, T = 10, J = 2)
model <- fit_model(data)
point_estimates(model)
point_estimates(model, FUN = median)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.