Learn R Programming

ssutil (version 1.0.0)

prophr: Calculate Event Probability in the Experimental Group Given a Hazard Ratio

Description

Computes the event probability in the experimental group based on the event probability in the control group and a specified hazard ratio, assuming proportional hazards.

Usage

prophr(p0, hr)

Value

Numeric. The probability of an event in the experimental group.

Arguments

p0

Numeric scalar. Probability of an event in the control group (between 0 and 1).

hr

Numeric scalar. Hazard ratio (must be > 0).

Details

This is useful for sample size calculations, for example in PASS (TM), which does not automatically adjust the event rate for the experimental group.

Examples

Run this code
prophr(0.05, 0.6)

Run the code above in your browser using DataLab