ExtendTrial-class: Trial data with beyond-trial extension

Description Usage Arguments Details Slots

Description

An S4 class of the data from a trial with hazards supplied for each outcome in the trial.

TODO documentation

Usage

1
2
ExtendTrial(df, df_mu, participant, outcome, hazard, followup, censor, s, s_max,
  discount)

Arguments

df

a data.frame of the trial data (long format)

df_mu

a data.frame of beyond-trial hazard data

participant

a formula describing the variables related to participants

outcome

a formula describing the variables related to outcomes

hazard

a formula describing the variables of the hazard

followup

expression for follow-up in data.frame (NSE)

censor

an expression for censoring status in trial data (NSE)

s

the name of the time variable in the hazard data (NSE)

s_max

name of extended follow-up time variable in participant data

discount

numeric (scalar) value of lifeyear discount rate

Details

Hazard data will be used to extend the life-year measurements beyond the follow-up times of the trial.

Slots

df_mu

a tbl_df of beyond-trial hazard data

hazard

a formula describing the hazard

censor

a logical vector of the censoring status at follow up

s

numeric value of the survival time in the hazard data

s_max

numeric value of participant follow up time given the hazard data


stephematician/trialcostR documentation built on May 30, 2019, 3:18 p.m.