check_consistent_pfs {psm3mkv}R Documentation

Check consistency of PFS definition Check that PFS is defined consistently with TTP and OS in a dataset. This convenience function compares pfs.durn with the lower of ttp.durn and os.durn, and checks that the event field pfs.flag is consistent with ttp.flag and os.flag (is 1 when either ttp.flag or os.flag is one).

Description

Check consistency of PFS definition Check that PFS is defined consistently with TTP and OS in a dataset. This convenience function compares pfs.durn with the lower of ttp.durn and os.durn, and checks that the event field pfs.flag is consistent with ttp.flag and os.flag (is 1 when either ttp.flag or os.flag is one).

Usage

check_consistent_pfs(ds)

Arguments

ds

Tibble of complete patient-level dataset

  • ttp.durn, pfs.durn, and os.durn are the durations of TTP (time to progression), PFS (progression-free survival), and OS (overall survival).

  • ttp.flag, pfs.flag, and os.flag, and pps.flag are event flag indicators for TTP, PFS, and OS respectively (1=event, 0=censoring).

Value

List containing:

Examples

ponc <- create_dummydata("pharmaonc")
check_consistent_pfs(ponc)

[Package psm3mkv version 0.3.2 Index]