endpoint.tstab: Threshold stability plots for endpoint

View source: R/endpoint.R

endpoint.tstabR Documentation

Threshold stability plots for endpoint

Description

This function calls endpoint.profile to compute the endpoint with profile likelihood confidence intervals at each threshold. It then returns a data frame and a plot

Usage

endpoint.tstab(
  time,
  time2 = NULL,
  event = NULL,
  thresh = 0,
  type = c("right", "left", "interval", "interval2"),
  ltrunc = NULL,
  rtrunc = NULL,
  weights = rep(1, length(time)),
  psi = NULL,
  confint = FALSE,
  level = 0.95,
  arguments = NULL,
  plot = TRUE,
  ...
)

prof_gp_endpt(
  time,
  time2 = NULL,
  event = NULL,
  thresh = 0,
  type = c("right", "left", "interval", "interval2"),
  ltrunc = NULL,
  rtrunc = NULL,
  weights = rep(1, length(time)),
  psi = NULL,
  confint = FALSE,
  level = 0.95,
  arguments = NULL,
  ...
)

Arguments

time

excess time of the event of follow-up time, depending on the value of event

time2

ending excess time of the interval for interval censored data only.

event

status indicator, normally 0=alive, 1=dead. Other choices are TRUE/FALSE (TRUE for death). For interval censored data, the status indicator is 0=right censored, 1=event at time, 2=left censored, 3=interval censored. Although unusual, the event indicator can be omitted, in which case all subjects are assumed to have experienced an event.

thresh

vector of thresholds

type

character string specifying the type of censoring. Possible values are "right", "left", "interval", "interval2".

ltrunc

lower truncation limit, default to NULL

rtrunc

upper truncation limit, default to NULL

weights

weights for observations

psi

mandatory vector of endpoints at which to compute the profile

confint

logical; if TRUE, return a level confidence interval instead of a list with the profile log-likelihood components

level

numeric; the level for the confidence intervals

arguments

a named list specifying default arguments of the function that are common to all elife calls

plot

logical; if TRUE, return a plot

...

additional parameters, currently ignored

Value

a data frame with the threshold, endpoint estimates and profile confidence intervals


longevity documentation built on June 8, 2025, 10:31 a.m.