Fallback of longitudinalSubVarCopula() for many ordinal
random effects. Each iteration draws every ordinal latent score from its
truncated normal given the subject's current random effects (one
dimension at a time, as they are independent given \(b\)), computes
\(E[b b^T \mid y, z]\) exactly, draws new random effects from their
Gaussian posterior, and updates \(D\) by stochastic approximation: step
1 for n_burnin iterations, then \(1/k\), averaging the next
n_average. The draws use a fixed seed, with the caller's random
number state restored, so a fit is reproducible.
Arguments
- D
Starting covariance.
- setup
Output of
copula_estep_setup().- n_burnin, n_average
Iterations with step 1 and with step \(1/k\).
- verbose
Print the change in
Dat every iteration.