grad_sqr_diff.mnl | R Documentation |
Provides analytical gradients for the squared differences optimization function with multinomial logit
grad_sqr_diff.mnl(x, mu, areas, targets, restrictions = NULL, cutoff = 0)
x |
Bias correction parameters |
mu |
Means of each class |
areas |
Vector of areas |
targets |
Targets to match |
restrictions |
Optional restrictions. Binary, if 1, the log-odds are set to zero |
cutoff |
Optional, defaults to zero. If set, all log-odds below cutoff are set to zero |
Vector of length J
containing the gradients for each value of x
.
Does not work for cutoff
> 0
or with restrictions. Generates a warning if these are supplied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.