remlRiskRatio: REML Estimates of Individual Proportions With Specified Risk...

View source: R/RcppExports.R

remlRiskRatioR Documentation

REML Estimates of Individual Proportions With Specified Risk Ratio

Description

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

Usage

remlRiskRatio(
  riskRatioH0 = 1,
  n1 = NA_real_,
  y1 = NA_real_,
  n2 = NA_real_,
  y2 = NA_real_
)

Arguments

riskRatioH0

The specified risk ratio.

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.

Value

A vector of the restricted maximum likelihood estimates of the response probabilities for the two treatment groups.

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples


remlRiskRatio(riskRatioH0 = 1.2, n1 = 10, y1 = 4, n2 = 20, y2 = 2)


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