remlRateRatio: REML Estimates of Individual Rates With Specified Rate Ratio

View source: R/RcppExports.R

remlRateRatioR Documentation

REML Estimates of Individual Rates With Specified Rate Ratio

Description

Obtains the restricted maximum likelihood estimates of individual proportions with specified rate ratio.

Usage

remlRateRatio(
  rateRatioH0 = 1,
  t1 = NA_real_,
  y1 = NA_real_,
  t2 = NA_real_,
  y2 = NA_real_
)

Arguments

rateRatioH0

The specified rate ratio.

t1

The exposure for the active treatment group.

y1

The number of events for the active treatment group.

t2

The exposure for the control group.

y2

The number of events for the control group.

Value

A vector of the restricted maximum likelihood estimates of the incidence rates for the two treatment groups.

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples


remlRateRatio(rateRatioH0 = 1.1, t1 = 10, y1 = 4, t2 = 20, y2 = 2)


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