TMB
report and input dataThis helper does some simple post-processing to extract covariance matrix or named list of covariance matrices if the fitting is using grouped covariance matrices.
h_mmrm_tmb_extract_cov(tmb_report, tmb_data, visit_var, is_spatial)
Return a simple covariance matrix if there is no grouping, or a named list of estimated grouped covariance matrices, with its name equal to the group levels.
(list
)
report created with TMB::MakeADFun()
report function.
(mmrm_tmb_data
)
produced by h_mmrm_tmb_data()
.
(character
)
character vector of the visit variable
(flag
)
indicator whether the covariance structure is spatial.