Function written in C++
estimating the gradient of the log likelihood
function for a given parameter set and given observations.
Arguments
- param_values
NumericVector
containing 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
NumericVector
containing the number of observations for each category of the multinominal distribution. The length of this vector equals the number of categories.