Skip to content

Commit 4537481

Browse files
committed
revert some ltjmm changes
1 parent 0050f1e commit 4537481

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/jm_data_block.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,8 +1964,8 @@ set_jm_sampling_args <- function(object, cnms, user_dots = list(),
19641964
# @param standata The list of data to pass to Stan
19651965
# @param is_jm A logical
19661966
# @return A character vector
1967-
pars_to_monitor <- function(standata, is_jm = FALSE) {
1968-
c(if (standata$M > 0 && standata$intercept_type[1]) "yAlpha1",
1967+
pars_to_monitor <- function (standata, is_jm = FALSE, is_ltjmm = FALSE) {
1968+
c(if (standata$M > 0 && standata$intercept_type[1]) "yAlpha1",
19691969
if (standata$M > 1 && standata$intercept_type[2]) "yAlpha2",
19701970
if (standata$M > 2 && standata$intercept_type[3]) "yAlpha3",
19711971
if (standata$M > 3 && standata$intercept_type[4]) "yAlpha4",
@@ -2033,6 +2033,7 @@ pars_to_monitor <- function(standata, is_jm = FALSE) {
20332033
if (is_jm && length(standata$basehaz_X)) "e_aux",
20342034
if (standata$prior_dist_for_cov == 2 && standata$bK1 > 0) "bCov1",
20352035
if (standata$prior_dist_for_cov == 2 && standata$bK2 > 0) "bCov2",
2036+
if (is_ltjmm) c('lt', 'sigma_lt'),
20362037
if (standata$prior_dist_for_cov == 1 && standata$len_theta_L) "theta_L",
20372038
"mean_PPD")
20382039
}

0 commit comments

Comments
 (0)