riskRatioExactCI: Exact Unconditional Confidence Interval for Risk Ratio

View source: R/RcppExports.R

riskRatioExactCIR Documentation

Exact Unconditional Confidence Interval for Risk Ratio

Description

Obtains the exact unconditional confidence interval for risk ratio based on the standardized score statistic.

Usage

riskRatioExactCI(
  n1 = NA_integer_,
  y1 = NA_integer_,
  n2 = NA_integer_,
  y2 = NA_integer_,
  cilevel = 0.95
)

Arguments

n1

The sample size for the active treatment group.

y1

The number of responses for the active treatment group.

n2

The sample size for the control group.

y2

The number of responses for the control group.

cilevel

The confidence interval level.

Value

A data frame containing the following variables:

  • scale: The scale of treatment effect.

  • estimate: The point estimate.

  • lower: The lower limit of the confidence interval.

  • upper: The upper limit of the confidence interval.

  • cilevel: The confidence interval level.

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples


riskRatioExactCI(n1 = 30, y1 = 2, n2 = 30, y2 = 1, cilevel = 0.95)


lrstat documentation built on Oct. 18, 2024, 9:06 a.m.