mdd.mantelhaen.restricted {MDD}R Documentation

MDD for CMH Given Number of Observed Control Responses

Description

For a specified number of control responses in each strata, calculate all possible treatment response scenarios for which the test statistic will be signiifcant, and optionally (by default) print out a paragraph sumamrizing the results.

Usage

mdd.mantelhaen.restricted(placebo.size, treat.size, placebo.vals, alpha = 0.05, alternative = "two.sided", exact = TRUE, print.summary = TRUE)

Arguments

placebo.size a vector with the number of subjects in each stratum assigned to the control group.
treat.size a vector with the number of subjects in each stratum assigned to the treatment group.
placebo.vals the number of responses to be observed in the control strata.
alpha significance level.
alternative indicates the alternative hypothesis and must be one of <code>"two.sided"</code>, <code>"greater"</code> or <code>"less"</code>. You can specify just the initial letter.
exact a logical value indicating whether to do an exact conditional test or use the CMH test statistic.
print.summary a logical indicating whether to print a paragraph summarizing the calculations.

Value

le All treatmenmt response scenarios for which the test statistic will be significant by virtue of the treatment response rate being less than the control response rate.
gr All treatmenmt response scenarios for which the test statistic will be significant by virtue of the treatment response rate being greater than the control response rate.

...

Warning

Run times for this program can be extremely large for trials with either a large number of strata or a large number of subjects.

Note

For one-sided tests, at least one of the two components of the return value will automatically be empty!

This function does the same job as mdd.mantelhaen(..., to.file="file.Rdata") followed by extract.mdd.mantelhaen(..., from.file="file.RData"), but much more quickly.

Author(s)

Don Barkauskas

References

See mantelhaen.test for references.

See Also

mdd.mantelhaen, extract.mdd.mantelhaen


[Package MDD version 0.5 Index]