spbp.default: spbp: The BP Based Semiparametric Survival Analysis Function

Description Usage Arguments Value

View source: R/spbp.R

Description

spbp: The BP Based Semiparametric Survival Analysis Function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Default S3 method:
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(),
  ...
)

Arguments

formula

a Surv object with time to event, status and explanatory terms

degree

Bernstein Polynomial degree

data

a data.frame object

approach

Bayesian or Maximum Likelihood estimation methods, default is approach = "bayes"

model

Proportional Hazards or Proportional Odds BP based regression, default is model = "ph"

priors

prior settings for the Bayesian approach; 'normal' or 'cauchy' for beta; 'gamma', 'inv_gamma' or 'lognormal' for gamma (BP coefficients)

scale

logical; indicates whether to center and scale the data

cores

number of core threads to use

...

further arguments passed to or from other methods

Value

An object of class spbp


spsurv documentation built on April 14, 2020, 7:20 p.m.