Learn R Programming

PMCMR (version 4.4)

PMCMR-deprecated: Deprecated Functions in Package PMCMR

Description

These functions are provided for reverse-dependencies issues of other R-packages. They should no longer be used, as actively maintained functions can be found in the package PMCMRplus. The functions may be defunct as soon as the next release.

Usage

posthoc.durbin.test(y, ...)

# S3 method for default posthoc.durbin.test(y, groups, blocks, p.adjust.method = p.adjust.methods, ...)

Arguments

y

either a numeric vector of data values, or a data matrix.

further arguments to be passed to or from methods.

groups

a vector giving the group for the corresponding elements of y if this is a vector; ignored if y is a matrix. If not a factor object, it is coerced to one.

blocks

a vector giving the block for the corresponding elements of y if this is a vector; ignored if y is a matrix. If not a factor object, it is coerced to one.

p.adjust.method

Method for adjusting p values (see p.adjust).

Value

A list with class "PMCMR"

  • method The applied method.

  • data.nameThe name of the data.

  • p.valueThe two-sided p-value according to the student-t-distribution.

  • statisticThe estimated quantiles of the student-t-distribution.

  • p.adjust.methodThe applied method for p-value adjustment.

References

W. J. Conover and R. L. Iman (1979), On multiple-comparisons procedures, Tech. Rep. LA-7677-MS, Los Alamos Scientific Laboratory.

W. J. Conover (1999), Practical nonparametric Statistics, 3rd. Edition, Wiley.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
## Example for an incomplete block design:
## Data from Conover (1999, p. 391).
y <- matrix(c(2, NA, NA, NA, 3, NA, 3, 3,
3, NA, NA, NA,  3, NA, NA,
1,  2, NA, NA, NA,  1,  1, NA,  1,  1,
NA, NA, NA, NA,  2, NA,  2,  1, NA, NA, NA, NA,
3, NA,  2,  1, NA, NA, NA, NA,  3, NA,  2,  2),
ncol=7, nrow=7, byrow=FALSE,
dimnames=list(1:7, LETTERS[1:7]))

posthoc.durbin.test(y)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab