Learn R Programming

lrstat (version 0.2.13)

remlRateDiff: REML Estimates of Individual Rates With Specified Rate Difference

Description

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

Usage

remlRateDiff(
  rateDiffH0 = 0,
  t1 = NA_real_,
  y1 = NA_real_,
  t2 = NA_real_,
  y2 = NA_real_
)

Value

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

Arguments

rateDiffH0

The specified rate difference.

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.

Author

Kaifeng Lu, kaifenglu@gmail.com

Examples

Run this code

remlRateDiff(rateDiffH0 = 0.1, t1 = 10, y1 = 4, t2 = 20, y2 = 2)

Run the code above in your browser using DataLab