CalcHR: Calculate Hazard Ratio

View source: R/hazard_ratio.R

CalcHRR Documentation

Calculate Hazard Ratio

Description

Calculate the hazard ratio, comparing two treatment arms, its confidence interval and p-value. Also provides the Schoenfeld residual test of the proportional hazards assumption.

Usage

CalcHR(data, arm_name = "arm", status_name = "status", time_name = "time")

Arguments

data

Reconstructed data.

arm_name

Name of arm column.

status_name

Name of status column.

time_name

Name of time column.

Value

Data.frame.


zrmacc/SurvUtils documentation built on Sept. 28, 2024, 8:43 a.m.