Calculate the general symmetric matrix and its first and second derivatives wrt D.
fun.generalmat(sigma, rho, obsi, transform, case = 1, case2 = NULL)
standard deviation
correlation coefficient
dimension of the square matrix
logical indicating wether or not the parameter in D is transformed.
1: return nobs x nobs general symmetric matrix; 2: return a list for first derivatives of the general symmetric matrix wrt D; 3: return an array containing 2nd derivatives of the general symmetric matrix wrt D.
indicator for variance and covariance parameters.