View source: R/mable-ph-model.r
mable.reg | R Documentation |
Wrapping all mable
fit of regression models in one function.
Using maximum approximate Bernstein/Beta likelihood
estimation to fit semiparametric regression models: Cox ph model,
proportional odds(po) model, accelerated failure time model, and so on.
mable.reg(
formula,
data,
model = c("ph", "aft", "po"),
M,
g = NULL,
pi0 = NULL,
tau = Inf,
x0 = NULL,
controls = mable.ctrl(),
progress = TRUE
)
formula |
regression formula. Response must be of the form |
data |
a data frame containing variables in |
model |
the model to fit. Current options are " |
M |
a vector |
g |
an initial guess of the regression coefficients |
pi0 |
Initial guess of |
tau |
right endpoint of support |
x0 |
a data frame containing working baseline covariates on the right-hand-side of |
controls |
Object of class |
progress |
if |
For "ph
" model a missing initial guess of the regression coefficients
g
is obtained by ic_sp()
of package icenReg
. For "aft
" model a
missing g
is imputed by the rank estimate aftsrr()
of package aftgee
for right-censored data. For general interval censored observations, we keep the
right-censored but replace the finite interval with its midpoint and fit the data by
aftsrr()
as a right-censored data.
A 'mable_reg' class object
Zhong Guan <zguan@iu.edu>
mable.aft
, mable.ph
, mable.po
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.