| mable.ic {mable} | R Documentation |
Mable fit based on one-sample interval censored data
Description
Maximum approximate Bernstein/Beta likelihood estimation of density and cumulative/survival distributions functions based on interal censored event time data.
Usage
mable.ic(
data,
M,
pi0 = NULL,
tau = Inf,
IC = c("none", "aic", "hqic", "all"),
controls = mable.ctrl(),
progress = TRUE
)
Arguments
data |
a dataset either |
M |
an positive integer or a vector |
pi0 |
Initial guess of |
tau |
right endpoint of support |
IC |
information criterion(s) in addition to Bayesian information criterion (BIC). Current choices are "aic" (Akaike information criterion) and/or "qhic" (Hannan–Quinn information criterion). |
controls |
Object of class |
progress |
if |
Details
Let f(t) and F(t) = 1 - S(t) be the density and cumulative distribution
functions of the event time, respectively. Then f(t) on [0, \tau_n] can be
approximated by f_m(t; p) = \tau_n^{-1}\sum_{i=0}^m p_i\beta_{mi}(t/\tau_n),
where p_i \ge 0, i = 0, \ldots, m, \sum_{i=0}^mp_i = 1-p_{m+1},
\beta_{mi}(u) is the beta denity with shapes i+1 and m-i+1, and
\tau_n is the largest observed time, either uncensored time, or right endpoint of
interval/left censored, or left endpoint of right censored time. We can approximate
S(t) on [0, \tau] by S_m(t; p) = \sum_{i=0}^{m+1} p_i \bar B_{mi}(t/\tau),
where \bar B_{mi}(u), i = 0, \ldots, m, is the beta survival function with shapes
i+1 and m-i+1, \bar B_{m,m+1}(t) = 1, p_{m+1} = 1 - \pi, and
\pi = F(\tau_n). For data without right-censored time, p_{m+1} = 1-\pi=0.
The search for optimal degree m is stoped if either m1 is reached or the test
for change-point results in a p-value pval smaller than sig.level.
Each row of data, (l, u), is the interval containing the event time.
Data is uncensored if l = u, right censored if u = Inf or u = NA,
and left censored data if l = 0.
Value
a class 'mable' object with components
-
pthe estimatedpwith degreemselected by the change-point method -
mloglikthe maximum log-likelihood at an optimal degreem -
intervalsupport/truncation interval(0, b) -
Mthe vector(m0,m1), wherem1is the last candidate when the search stoped -
mthe selected optimal degree by the method of change-point -
lklog-likelihoods evaluated atm \in \{m_0, \ldots, m_1\} -
lrlikelihood ratios for change-points evaluated atm \in \{m_0+1, \ldots, m_1\} -
tau.nmaximum observed time\tau_n -
tauright endpoint of support[0, \tau) -
ica list containing the selected information criterion(s) -
pvalthe p-values of the change-point tests for choosing optimal model degree -
chptsthe change-points chosen with the given candidate model degrees -
convergencean integer code. 0 indicates successful completion(the iteration is convergent). 1 indicates that the maximum candidate degree had been reached in the calculation; -
deltathe finalpvalof the change-point for selecting the optimal degreem;
Author(s)
Zhong Guan <zguan@iusb.edu>
References
Guan, Z. (2019) Maximum Approximate Bernstein Likelihood Estimation in Proportional Hazard Model for Interval-Censored Data, arXiv:1906.08882 .
See Also
Examples
library(mable)
bcos=cosmesis
bc.res0<-mable.ic(bcos[bcos$treat=="RT",1:2], M=c(1,50), IC="none")
bc.res1<-mable.ic(bcos[bcos$treat=="RCT",1:2], M=c(1,50), IC="none")
op<-par(mfrow=c(2,2),lwd=2)
plot(bc.res0, which="change-point", lgd.x="right")
plot(bc.res1, which="change-point", lgd.x="right")
plot(bc.res0, which="survival", add=FALSE, xlab="Months", ylim=c(0,1), main="Radiation Only")
legend("topright", bty="n", lty=1:2, col=1:2, c(expression(hat(S)[CP]),
expression(hat(S)[BIC])))
plot(bc.res1, which="survival", add=FALSE, xlab="Months", main="Radiation and Chemotherapy")
legend("topright", bty="n", lty=1:2, col=1:2, c(expression(hat(S)[CP]),
expression(hat(S)[BIC])))
par(op)