sambrilleman / rstanarm

rstanarm R package for Bayesian applied regression modeling
http://mc-stan.org/interfaces/rstanarm.html
GNU General Public License v3.0
0 stars 1 forks source link

Return b_mat so that psoterior_survfit can be used with shared_b and shared_coef association structures #27

Open sambrilleman opened 7 years ago

sambrilleman commented 7 years ago

Here: https://github.com/sambrilleman/rstanarm/blob/feature-posterior-survfit/R/stan_jm.R#L2295

b_mat and related quantities are not returned. Therefore posterior_survfit can't be used with joint models estimated with a shared_b or shared_coef association structure. Need to set up a temporary stop() for users trying to use posterior_survfit with shared_b or shared_coef joint models.

Then, longer term, need to return b_mat etc as part of the make_assoc_parts function, so that those quantities can be used by the make_assoc_terms function.