Learn R Programming

landpred (version 2.0)

Prob.Covariate.ShortEvent: Calculate Probability with Short Event Information

Description

Calculates the probability of the event occurring before t0 + tau, given survival up to t0, using information on a short-term event.

Usage

Prob.Covariate.ShortEvent(
  t0,
  tau,
  data,
  weight = NULL,
  bandwidth = NULL,
  newdata = NULL
)

Value

A landpred_result object.

Arguments

t0

The landmark time.

tau

The prediction window.

data

The data frame.

weight

Optional weights.

bandwidth

Bandwidth for kernel smoothing.

newdata

Optional new data for prediction.