rate_ratio: Estimate rate ratio

View source: R/helpers.R

rate_ratioR Documentation

Estimate rate ratio

Description

Estimate rate ratio along with confidence interval and p-value.

Usage

rate_ratio(a, b, time.a, time.b, conf.level = 0.95)

Arguments

a

The number of events in group a.

b

The number of events in group b.

time.a

Time under risk of group a.

time.b

Time under risk of group b.

conf.level

Confidence level (default = 0.95)

Details

Tidy version of Minato Nakazawa's fmsb::rateratio() function.

Value

The function returns a data.frame with four variables:

  • EST Point estimate

  • CIL Confidence interval, lower bound

  • CIU Confidence interval, upper bound

  • PVAL p-Value

Source

https://mirror.linux.duke.edu/cran/web/packages/fmsb/index.html


nrkoehler/xyzfuns documentation built on Nov. 12, 2024, 1:29 p.m.