spbp: The BP Based Semiparametric Survival Analysis Function
# S3 method for default
spbp(
formula,
degree,
data,
approach = c("mle", "bayes"),
model = c("ph", "po", "aft"),
priors = list(beta = c("normal(0,4)"), gamma = "lognormal(0,10)"),
scale = TRUE,
cores = parallel::detectCores(),
...
)
a Surv object with time to event, status and explanatory terms
Bernstein Polynomial degree
a data.frame object
Bayesian or Maximum Likelihood estimation methods, default is approach = "bayes"
Proportional Hazards or Proportional Odds BP based regression, default is model = "ph"
prior settings for the Bayesian approach; `normal` or `cauchy` for beta; `gamma`, `inv_gamma` or `lognormal` for gamma (BP coefficients)
logical; indicates whether to center and scale the data
number of core threads to use
further arguments passed to or from other methods
An object of class spbp