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).
constrMLE.difference(X1, N1, X2, N2, delta0)
vector, number of events in group 1
sample size in group 1
vector, number of events in group 2
sample size in group 2
null parameter value
a list with the constrained MLE parameters, p1 and p2.
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.
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.