Skip to content

Commit bda83b8

Browse files
committed
Try deal with the xlevs stuff
1 parent 47b7e02 commit bda83b8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

R/pp_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ pp_data <-
355355
mf[, colnames(mf_s)] <- mf_s
356356

357357
# construct time-varying predictor matrix
358-
s <- make_s(formula, mf, xlevs = object$xlevs)
358+
s <- make_s(formula, mf)
359359

360360
if (all(is.na(pts))) {
361361
# if pts were all NA then replace the time-varying predictor

R/stan_surv.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ stan_surv <- function(formula,
748748
if (has_tve) {
749749

750750
# time-varying predictor matrix
751-
s_cpts <- make_s(formula, mf_cpts, xlevs = xlevs)
751+
s_cpts <- make_s(formula, mf_cpts)
752752
smooth_map <- get_smooth_name(s_cpts, type = "smooth_map")
753753
smooth_idx <- get_idx_array(table(smooth_map))
754754
S <- ncol(s_cpts) # number of tve coefficients

0 commit comments

Comments
 (0)