Function written in C++ estimating the gradient of the log likelihood
function for a given parameter set and given observations.
Arguments
- param_values
NumericVectorcontaining the probabilities of a multinominal distribution. The length of this factor is the number of categories - 1 since it contains only the parameters to be estimated.- observations
NumericVectorcontaining the number of observations for each category of the multinominal distribution. The length of this vector equals the number of categories.