constrMLE.difference | R Documentation |
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)
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 |
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.
a list with the constrained MLE parameters, p1 and p2.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.