plot.wnpmle_profile: Plot the results of plot_loglik() or plot_tic() again

plot.wnpmle_profileR Documentation

Plot the results of plot_loglik() or plot_tic() again

Description

plot_loglik and plot_tic return their results (invisibly) as an object of class "wnpmle_profile". plot() redraws the figure from these results without refitting any model, e.g. with a different layout or into a PDF file.

Usage

## S3 method for class 'wnpmle_profile'
plot(
  x,
  layout = NULL,
  relative = TRUE,
  show_loglik = TRUE,
  mark_points = TRUE,
  legend = TRUE,
  file = NULL,
  width = NULL,
  height = NULL,
  ...
)

Arguments

x

An object of class "wnpmle_profile", returned by plot_loglik or plot_tic.

layout

"joint" (default) or "panels"; see plot_loglik.

relative

Logical; show each criterion relative to its optimum (-\Delta\mathrm{AIC}/2, -\Delta\mathrm{TIC}/2; default TRUE), or on the log-likelihood scale.

show_loglik

Logical; for results of plot_tic(), also show AIC (default TRUE).

mark_points, legend, file

As in plot_loglik.

width, height

Size of the PDF in inches; default 3.6 x 2.8 (with pointsize 9, as in Bellach and Kosorok, 2026) for layout = "joint" and 7 x 4.5 for "panels".

...

Ignored.

Value

x, invisibly.

Examples


bdata <- bladder_prep()
res <- plot_loglik(Surv(time, status) ~ treat + num + size, data = bdata,
                   id = "id", rho_grid = seq(0.2, 1.2, by = 0.2),
                   r_grid = seq(0.2, 1.2, by = 0.2))
plot(res, layout = "panels")        # redrawn without refitting


wnpmle documentation built on Dec. 1, 2026, 9:06 a.m.