tests/testthat/helpers/recover_betas.R

recover_betas <- function(mod) {
  nms <- names(mod$coefficients)
  nms_drop <- c("log(scale)", "log(shape)")
  sel <- setdiff(nms, nms_drop)
  if (length(sel)) as.list(mod$coefficients[sel]) else NULL
}

Try the simsurv package in your browser

Any scripts or data that you put into this service are public.

simsurv documentation built on Jan. 16, 2021, 5:27 p.m.