OddsRatio: Calculate Rate Odds Ratio

View source: R/compare_rates.R

OddsRatioR Documentation

Calculate Rate Odds Ratio

Description

Calculate the odds ratio comparing two treatment arms. Input data.frame should contain arm, taking values 0 and 1, the event rate, and the standard error.

Usage

OddsRatio(
  rates,
  alpha = 0.05,
  arm_name = "arm",
  rate_name = "rate",
  se_name = "se"
)

Arguments

rates

Data.frame.

alpha

Type I error.

arm_name

Name of arm column.

rate_name

Name of rate column.

se_name

Name of standard error column.

Value

Data.frame


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