Description Usage Arguments Value References Examples
This function calculates the maximum likelihood estimator (MLE) of the variance restricted to P.T-P.C=-Delta.
1 | restricted_mle(x.T, x.C, N.T, N.C, Delta)
|
x.T |
positive integer representing the observed number of responders in the treatment group |
x.C |
positive integer representing the observed number of responders in the control group |
N.T |
positive integer representing the sample size in the treatment group |
N.C |
positive integer representing the sample size in the control group |
Delta |
numeric between -1 and 1 representing the constraint for P.C-P.T |
list of length 2 where the first element is MR.T representing the MLE for the treatment group and the second element is MR.C representing the MLE for the control group
Miettinen:85EC
1 2 | #calculates MLE of variance of 5/10 and 7/10 under the constraint P.T=P.C-0.2
restricted_mle(x.T=5,x.C=7,N.T=10,N.C=10,Delta=0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.