create_dummydata {psm3mkv}R Documentation

Create dummy dataset for illustration

Description

Create dummy dataset to illustrate psm3mkv

Usage

create_dummydata(dsname)

Arguments

dsname

Dataset name, as follows:

  • flexbosms provides a dataset based on flexsurv::bosms3(). This contains all the fields necessary for psm3mkv. Durations have been converted from months in the original dataset to weeks.

  • pharmaonc provides a dataset based on pharmaverseadam::adsl and pharmaverseadam::adrs_onco to demonstrate how this package can be used with ADaM ADTTE datasets.

  • survcan provides a dataset based on survival::cancer(). This contains the necessary ID and overall survival fields only. Durations have been converted from days in the original dataset to weeks. You will additionally need to supply PFS and TTP data (fields pfs.durn, pfs.flag, ttp.durn and ttp.flag) to use psm3mkv.

Value

Tibble dataset, for use with psm3mkv functions

Examples

create_dummydata("survcan") |> head()
create_dummydata("flexbosms") |> head()
create_dummydata("pharmaonc") |> head()

[Package psm3mkv version 0.3.2 Index]