R: Calculate constrained MLEs.

constrMLE.difference {exact2x2} | R Documentation

## Calculate constrained MLEs.

### Description

Calculate the constrained maximum likelihood estimate from 2 independent binomials for the null hypothesis parameter (difference, ratio, or odds ratio of the two binomial parameters).

### Usage

    constrMLE.difference(X1, N1, X2, N2, delta0)

### Arguments

`X1` | vector, number of events in group 1
`N1` | sample size in group 1
`X2` | vector, number of events in group 2
`N2` | sample size in group 2
`delta0` | null parameter value

### Details

For details see Farrrington and Manning (1990) for the difference, Miettinen and Nurminen (1985) for the ratio, and Agresti and Min (2002) for the odds ratio.

### Value

a list with the constrained MLE parameters, p1 and p2.

### References

Agresti and Min 2002, Biostatistics 3:379-386.

Farrrington and Manning, Stat in Med 1990, 1447-1454.

Miettinen, 0. and Nurminen, M. (1985). Comparative analysis of two rates. Statistics in Medicine 4, 213-226.

[Package exact2x2 version 1.6.3 Index]