Functions for binary choice example in the vignette.
binary.f(P, data, priors, order.row = FALSE)binary.grad(P, data, priors, order.row = FALSE)
binary.hess(P, data, priors, order.row = FALSE)
Numeric vector of length (N+1)*k. First N*k elements are heterogeneous coefficients. The remaining k elements are population parameters.
List of data matrices Y and X, and choice count integer T
List of named matrices inv.Omega and inv.Sigma
Determines order of heterogeneous coefficients in parameter vector. Affects sparsity pattern of Hessian. See vignette.
Log posterior density, gradient and Hessian.
Hessian is sparse, and returned as a dgcMatrix object