Function written in C++ estimating the log likelihood of a given
parameter set during the condition stage.
Usage
est_con_multinominal_c(
observations,
anchor,
max_iter = 500000L,
step_size = 1e-04,
cr_rel_change = 1e-12,
n_random_starts = 10L,
fast = TRUE,
trace = FALSE
)Arguments
- observations
NumericVectorcontaining the frequency of the categories.- anchor
Integerranging between 1 and the number of categories. Anchor defines the reference category. That is the category with the highest probability according to the assumption of weak superiority.- max_iter
Integerspecifying the maximal number of iterations for each random start.- step_size
Doublefor specifying the size for increasing or decreasing the probabilities during the estimation. This value should not be less than 1e-3.- cr_rel_change
Doublefor defining when the estimation should stop. That is, if the change in log-likelihood is smaller as this value the estimation stops.- n_random_starts
Integerfor the number of random start.- fast
BoolIfTRUEa fast estimation is applied. This option ignored all other parameters. IfFALSEthe estimation described in Berding and Pargmann (2022) is used. Default isTRUE.- trace
BoolTRUEif information about the progress of estimation should be printed to the console.FALSEif not desired.