point_estimates {RprobitB} | R Documentation |
Compute point estimates
Description
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
.
Usage
point_estimates(x, FUN = mean)
Arguments
x |
An object of class |
FUN |
A function that computes a single numeric value out of a vector of numeric values. |
Value
An object of class RprobitB_parameter
.
Examples
data <- simulate_choices(form = choice ~ covariate, N = 10, T = 10, J = 2)
model <- fit_model(data)
point_estimates(model)
point_estimates(model, FUN = median)
[Package RprobitB version 1.1.4 Index]