Calculate matrix of log Likelihood derivatives
score_matrix(integrand, X, A, G, parameters, runSilent = TRUE, ...)
integrand
: function passed to log_likelihood
. Defaults to logit_integrand
X
: covariate matrixA
: vector of treatment assignmentsG
: vector of group assignmentsparameters
: vector of parameters passed to integrand
runSilent
: If FALSE, prints errors to console. Defaults to TRUE....
: additional arguments passed to integrand
or grad
. For example, one can change the method
argument in grad
.N X length(params) matrix of scores
Useful links