CorrMat.HSD | R Documentation |
The correlation matrix is reparameterized via hyperspherical coordinates angle parameters for
trigonometric functions,
and the angle parameters are referred to hypersphere (HS) parameters. In order to obtain the unconstrained estimation
of angle parameters and to reduce the number of parameters for facilitating the computation,
we model the correlation structures of the responses in terms of the generalized linear models
CorrMat.HSD(w, delta)
w |
a design matrix is used to model the HS parameters as functions of subject-specific covariates. |
delta |
an a \times 1 vector of unknown parameters to model the HS parameters. |
a correlation matrix
Kuo-Jung Lee kuojunglee@ncku.edu.tw
Zhang:etal:2015BayesRGMM
## Not run: library(BayesRGMM) rm(list=ls(all=TRUE)) T = 5 #time points HSD.para = c(-0.5, -0.3) #the parameters in HSD model a = length(HSD.para) w = array(runif(T*T*a), c(T, T, a)) #design matrix in HSD model signif(CorrMat.HSD(w, HSD.para), 4) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.