powered by
Computes a gradient for the centered model, taking coefficients, a design matrix, a response matrix, and a list of adjacency matrices
centeredLogLikGrad(theta, X, z, A, constraint, thetaInds, innerIndices = NULL)
a matrix of coefficients with dimension (p+(k-1)*length(A)) by k; frequently A will have length 1
nxp design matrix
nxk response matrix
a list of adjacency matrices
constraint on eta
relevant indices
only here to match argument list with uncentered case
a gradient vector
# NOT RUN { #g=centeredLogLikGrad(theta,X,z,A) # }
Run the code above in your browser using DataLab