Learn R Programming

flexmix (version 2.3-19)

Mehta: Mehta Trial

Description

For a 22-centre trial the number of responses and the total number of patients is reported for the control group and the group receiving a new drug.

Usage

data("Mehta")

Arguments

Format

A data frame with 44 observations on the following 4 variables.

Response

Number of responses.

Total

Total number of observations.

Drug

A factor indicating treatment with levels New and Control.

Site

A factor indicating the site/centre.

References

C.R. Mehta, N.R. Patel and P. Senchaudhuri. Importance sampling for estimating exact probabilities in permutational inference. Journal of the American Statistical Association, 83, 999--1005, 1988.

Examples

Run this code
data("Mehta", package = "flexmix")
mehtaMix <- initFlexmix(cbind(Response, Total-Response) ~ 1|Site, 
                        data = Mehta, nrep = 5, k = 3,
                        model = FLXMRglmfix(family = "binomial",
                          fixed = ~ Drug), 
                        control = list(minprior = 0.04))

Run the code above in your browser using DataLab