outcome_by_followup_time: Cohort outcome by follow-up time

Description Usage Arguments

View source: R/outcome_by_followup_time.R

Description

Calculate each patient's cohort status at any timepoint since treatment initiation by defining a reporting date and follow-up time in months

Usage

1
2
3
4
5
6
7
8
9
outcome_by_followup_time(
  followup_month,
  df,
  reporting_date,
  start_var,
  date_var,
  id_var,
  status_var
)

Arguments

followup_month

integer defining the follow-up time in months

df

data frame of cohort status changes

reporting_date

date defining the reporting date

start_var

character defining the name of the start treatment variable

date_var

character defining the status change date variable

id_var

character defining the patient ID variable

status_var

character definintg the status change variable


JayAchar/hisreportr documentation built on March 18, 2020, 5:57 a.m.