RandEff_to_alpha012 {SteppedPower} | R Documentation |
Correlation structure: transform random effects to alpha
Description
Correlation structure: transform random effects to alpha
Usage
RandEff_to_alpha012(sigResid, tau, gamma, psi)
Arguments
sigResid |
Residual standard deviation on individual level |
tau |
standard deviation of random cluster intercept |
gamma |
standard deviation of random time effect |
psi |
standard deviation of random subject specific intercept |
Value
a list containing four named elements (possibly matrices): 'alpha0', 'alpha1', 'alpha2' specify a correlation structure and SigMarg denotes the marginal standard deviation
Examples
RandEff_to_alpha012(sigResid=sqrt(11), tau=4, gamma=3, psi=2)
## The function is vectorised:
RandEff_to_alpha012(sigResid = matrix(c(0,1,2,3,4,5), 2, 3),
tau = matrix(c(1,1,1,0,0,0), 2, 3),
gamma = matrix(c(0,0,1,0,0,1), 2, 3),
psi = matrix(c(0,1,1,0,0,1), 2, 3))
[Package SteppedPower version 0.3.5 Index]