hazard_table: hazard_table

Description Usage Arguments

View source: R/hazard_table.R

Description

internal function that generates hazard ratio table at each month if you have pre-calculated hazard values you can pass them directly to reduce computation time.

Usage

1
2
3
4
5
6
7
8
hazard_table(
  survnma,
  treatments = NULL,
  reference,
  timesteps = seq(0, 30),
  hazards = NULL,
  print = FALSE
)

Arguments

survnma

survnma object to be passed

treatments

a list of desired treatments to be compared

reference

string of treatment that acts as reference

timesteps

Vector of evaluation times. Should be of length > 2

hazards

precalculated hazards (using prep_all_hazards) to reduce computation time

print

Boolean, if true prints results in console, if false stores dataframe


certara/survivalnma documentation built on Oct. 17, 2020, 12:34 a.m.