| plot_tic | R Documentation |
Fits the Box-Cox and logarithmic transformation models over grids of the
transformation parameter and plots TIC and AIC on the log-likelihood scale,
relative to their optimum: -\Delta\mathrm{TIC}/2 (solid, filled
circles) and -\Delta\mathrm{AIC}/2 (dashed, open circles), as in
Figure 2 of Bellach and Kosorok (2026); see TIC. The maximum
of the solid curve is the model with the smallest TIC. r \to 0 and
\rho = 1 give the Ghosh-Lin model (the Fine-Gray model for
type = "cmprsk"), and \rho \to 0 and r = 1 the
proportional odds model. Further arguments such as type = "cmprsk"
are passed to wnpmle_fit via ....
plot_tic(
formula,
data,
id = "id",
rho_grid = seq(0.05, 1.2, by = 0.05),
r_grid = seq(0.05, 1.2, by = 0.05),
tau = NULL,
mark_points = TRUE,
show_loglik = TRUE,
layout = NULL,
legend = TRUE,
file = NULL,
width = NULL,
height = NULL,
verbose = TRUE,
...
)
formula |
A formula as passed to |
data |
A data frame. |
id |
Name of the subject identifier column. |
rho_grid |
Box-Cox parameter values (default |
r_grid |
Logarithmic parameter values (default |
tau |
Optional truncation time. If |
mark_points |
Logical; if |
show_loglik |
Logical; if |
layout |
|
legend |
Logical; add a legend (default |
file |
Optional path to save the plot as a PDF (e.g.
|
width, height |
Size of the PDF in inches; default 3.6 x 2.8 (pointsize
9, as Figure 2 of Bellach and Kosorok, 2026) for |
verbose |
Logical; print progress (default |
... |
Additional arguments passed to |
Every grid point needs a fit with the censoring-corrected sandwich and a
fit with the inverse Fisher information, so this is much slower than
plot_loglik; the default grids are therefore coarser.
A data frame of class "wnpmle_profile" with columns
model, param, loglik, penalty, p,
AIC and TIC, invisibly. Save it (res <- plot_tic(...))
to redraw the figure with plot.wnpmle_profile without
refitting.
TIC, plot_loglik
dat <- bladder_prep()
res <- plot_tic(Surv(time, status) ~ treat + num + size, data = dat,
id = "id", rho_grid = c(0.5, 1), r_grid = c(0.5, 1))
res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.