powered by
Takes coefficient values and a design matrix and computes the gradient of the loglikelihood
uncenteredLogLikGrad(theta, X, z, A, constraint, thetaInds, innerIndices)
matrix of coefficients
an nxp design matrix
an nxk response matrix
list of adjacency matrices/list containing adjacency matrix
constraint on eta
relevant indices
the (1-dim.) location/index for internal points in the grid
a gradient vector
# NOT RUN { #gradient=uncenteredLogLikGrad(theta,X,z,A,constraint,thetaInds) # }
Run the code above in your browser using DataLab