GenPseudo: Generate Pseudovalues

View source: R/Pseudovalues.R

GenPseudoR Documentation

Generate Pseudovalues

Description

Generate Pseudovalues

Usage

GenPseudo(
  data,
  cens_after_last = TRUE,
  idx_name = "idx",
  status_name = "status",
  tau = NULL,
  time_name = "time",
  weights = NULL
)

Arguments

data

Data.frame.

cens_after_last

Should subjects who lack an explicit censoring time be censored after their last observed event?

idx_name

Name of column containing a unique subject index.

status_name

Name of column containing the status. Must be coded as 0 for censoring, 1 for event, 2 for death. Each subject should have an observation-terminating event, either censoring or death.

tau

Numeric truncation time.

time_name

Name of column containing the observation time.

weights

Optional column of weights, controlling the size of the jump in the cumulative count curve at times with status == 1.

Value

Data.frame with the influence and pseudo-value for each unique observation.


zrmacc/MCC documentation built on July 16, 2025, 4:04 p.m.