Function written in C++ estimating the log likelihood of a given
parameter set.
Usage
fct_log_likelihood_c(
categorial_sizes,
aem,
obs_pattern_shape,
obs_pattern_frq,
categorical_levels
)Arguments
- categorial_sizes
Vectorcontaining the sizes of the different categories. That is amount of a category on all cases.- aem
Matrixin aem form. This matrix reports the true category in the rows and the assigned categories in the columns. The cells represent the probabilities that a coding unit of category i is assigned to category j.- obs_pattern_shape
Matrixcontaining the unique patterns found in the data. Ideally this matrix is generated by the functionget_patterns().- obs_pattern_frq
Vectorcontaining the frequencies of the patterns. Ideally it is generated by the the functionget_patterns().- categorical_levels
Vectorcontaining all possible categories of the content analysis.