restricted_mle: Restricted MLE of variance

Description Usage Arguments Value References Examples

View source: R/EC.R

Description

This function calculates the maximum likelihood estimator (MLE) of the variance restricted to P.T-P.C=-Delta.

Usage

1
restricted_mle(x.T, x.C, N.T, N.C, Delta)

Arguments

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

Value

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

References

\insertRef

Miettinen:85EC

Examples

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)

NourHawila/EC documentation built on Feb. 24, 2022, 8:24 a.m.