riskDiffExactPValue {lrstat}R Documentation

P-value for exact unconditional test of risk difference

Description

Obtains the p-value for exact unconditional test of risk difference.

Usage

riskDiffExactPValue(
  riskDiffH0 = 0,
  directionUpper = 1L,
  n1 = NA_integer_,
  y1 = NA_integer_,
  n2 = NA_integer_,
  y2 = NA_integer_
)

Arguments

riskDiffH0

The risk difference under the null hypothesis. Defaults to 0.

directionUpper

Whether larger values represent better responses.

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 data frame containing the following variables:

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples


riskDiffExactPValue(riskDiffH0 = 0, directionUpper = 1,
                    n1 = 68, y1 = 2, n2 = 65, y2 = 1)


[Package lrstat version 0.2.9 Index]