Learn R Programming

lrstat (version 0.2.13)

remlRiskDiff: REML Estimates of Individual Proportions With Specified Risk difference

Description

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

Usage

remlRiskDiff(
  riskDiffH0 = 0,
  n1 = NA_real_,
  y1 = NA_real_,
  n2 = NA_real_,
  y2 = NA_real_
)

Value

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

Arguments

riskDiffH0

The specified risk difference.

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.

Author

Kaifeng Lu, kaifenglu@gmail.com

Examples

Run this code

remlRiskDiff(riskDiffH0 = 0.1, n1 = 10, y1 = 4, n2 = 20, y2 = 0)

Run the code above in your browser using DataLab