RateDiff: Calculate Rate Difference.

View source: R/compare_rates.R

RateDiffR Documentation

Calculate Rate Difference.

Description

Calculate the rate difference comparing two groups. Input data.frame should contain arm, taking values 0 and 1, the event rate, and the standard error.

Usage

RateDiff(
  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.