R/st.R

Defines functions st

Documented in st

#' Specification of covariates entering the short-term part
#' in a promotion time cure model.
#' @keywords internal
#' @export


# Covariates entering the short-term survival (Cox part)
st <- function(...) {
  st.covariates <- as.list(substitute(list(...)))[-1]
  if (length(st.covariates) == 1) {
    gsub(" + ", "+", st.covariates, fixed = TRUE)
  } else{
    paste(unlist(st.covariates),  collapse = "+")
  }
}

Try the blapsr package in your browser

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

blapsr documentation built on Aug. 20, 2022, 5:05 p.m.