Learn R Programming

⚠️There's a newer version (1.9.12) of this package.Take me there.

Installation of PMCMRplus and (external) dependencies

Description

In order to use the extended functions of the R package PMCMRplus, several additional R packages available from CRAN need to be imported, i.e. mvtnorm (Genz and Bretz 2009, Genz et al. 2015), multcompView (Graves et al. 2015), Rmpfr (Maechler 2016) and gmp (Lucas et al. 2017). This will be done automatically by R's package management system.

However, Linux user may encounter some installation problems, as several R packages require external libraries on the system. This is why this README file briefly describes the installation procedure of PMCMRplus.

Installation under Windows

As R packages for Windows are distributed in binary form, there should not be any problem with the installation. Simply run from within R the following function:

install.packages("PMCMRplus")

R will automatically install all the relevant dependencies. Provided that PMCMRplus is already installed on your system, simply update the package or all installed packages with:

# update PMCMRplus
update.packages("PMCMRplus")

# or update all
update.packages()

Installation under Linux from source packages

R packages for Unix / Linux are distributed in source form. Installation of R add-on packages do not require root proviliges and the installation directory is set in the variable $R_LIBS_USER. The installation directory is in the users $HOME directory.

First check, whether PMCMRplus can be installed or updated by running the following function from within R:

# update PMCMRplus
update.packages("PMCMRplus")

# or install
install.packages("PMCMRplus")

Both R packages Rmpfr and gmp need compilation and are wrapper functions for the external libraries (i.e. not shipped with R) libmpfr (Fousse et al. 2007, https://www.mpfr.org/) and libgmp (https://gmplib.org/). For a correct compilation, the corresponding header files of the external libraries are required. Therefore, it is possible that the installation process breaks up with an error message such as:

...
configure: error: GNU MP not found ...
...
configure: error: Header file mpfr.h not found

However, both libraries and their header files are commonly available on various Linux distributions.

Ubuntu and Debian

Check for the header files by running the following commands outside of R from the console.

dpkg -p libgmp-dev
dpkg -p libmpfr-dev

If any (or both) of the above packages are missing, simply install the missing package(s) from the repository of your Linux distribution:

sudo apt-get install libgmp-dev
sudo apt-get install libmpfr-dev

After successful installation of the above Linux packages, repeat with the installation of the R package PMCMRplus from within R:

install.packages("PMCMRplus")

Fedora, Redhat, CentOS, opensuse, etc.

Check for the header files by running the following commands outside of R from the console.

dnf info gmp-devel
dnf info mpfr-devel

If any (or both) of the above packages are missing, simply install the missing package(s) from the repository of your Linux distribution:

sudo dnf install gmp-devel
sudo dnf install mpfr-devel

After successful installation of the above Linux packages, repeat with the installation of the R package PMCMRplus from within R:

install.packages("PMCMRplus")

Installation under Linux using binary packages

Ubuntu

Installation instructions for R core using an Ubuntu distribution can be found here:

https://cran.r-project.org/bin/linux/ubuntu/

Additional CRAN binary packages (>1,000) for Ubuntu are availabe at the CRAN2deb4ubuntu PPA that can be found here

https://launchpad.net/~marutter/+archive/ubuntu/c2d4u

or

https://launchpad.net/~marutter/+archive/ubuntu/c2d4u3.5.

Provided, that the above PPA was successfully added to the package source list and the user has root (or su, sudo) priviliges, one can try to install precompiled r-cran* deb packages outside of the R environment as

sudo apt-get install r-cran-pmcmrplus

This will install depending dep packages for PMCMCRplus, too.

References

L. Fousse, G. Hanrot, V. Lefevre, P. Pelissier, P. Zimmermann (2007) MPFR: A Multiple-precision Binary Floating-point Library with Correct Rounding. ACM Trans. Math. Softw. 33. 13. https://doi.acm.org/10.1145/1236463.1236468.

A. Genz, F. Bretz (2009) Computation of Multivariate Normal and t Probabilities. Lecture Notes in Statistics. Heidelberg: Springer.

A. Genz, F. Bretz, T. Miwa, X. Mi, F. Leisch, F. Scheipl, T. Hothorn (2017) mvtnorm: Multivariate Normal and t Distributions. R package version 1.0-6, https://CRAN.R-project.org/package=mvtnorm.

S. Graves, H.-P. Piepho, L. Selzer, S. Dorai-Raj (2015) multcompView: Visualizations of Paired Comparisons. R package version 0.1-7, https://CRAN.R-project.org/package=multcompView.

A. Lucas, I. Scholz, R. Boehme, S. Jasson, M. Maechler (2017) gmp: Multiple Precision Arithmetic. R package version 0.5-13.1, https://CRAN.R-project.org/package=gmp.

M. Maechler (2016) Rmpfr: R MPFR - Multiple Precision Floating-Point Reliable. R package version 0.6-1. https://CRAN.R-project.org/package=Rmpfr.

Copy Link

Version

Install

install.packages('PMCMRplus')

Monthly Downloads

19,571

Version

1.9.6

License

GPL (>= 3)

Last Published

August 17th, 2022

Functions in PMCMRplus (1.9.6)

MTest

Extended One-Sided Studentised Range Test
adManyOneTest

Anderson-Darling Many-To-One Comparison Test
bwsTrendTest

Testing against Ordered Alternatives (Murakami's BWS Trend Test)
bwsKSampleTest

Murakami's k-Sample BWS Test
adKSampleTest

Anderson-Darling k-Sample Test
adAllPairsTest

Anderson-Darling All-Pairs Comparison Test
frdAllPairsNemenyiTest

Nemenyi's All-Pairs Comparisons Test for Unreplicated Blocked Data
bwsManyOneTest

BWS Many-To-One Comparison Test
cochranTest

Cochran Test
dunnettT3Test

Dunnett's T3 Test
frdAllPairsSiegelTest

Siegel and Castellan's All-Pairs Comparisons Test for Unreplicated Blocked Data
bwsAllPairsTest

BWS All-Pairs Comparison Test
cuzickTest

Testing against Ordered Alternatives (Cuzick's Test)
hsAllPairsTest

Hayter-Stone All-Pairs Comparison Test
frdAllPairsConoverTest

Conover's All-Pairs Comparisons Test for Unreplicated Blocked Data
duncanTest

Duncan's Multiple Range Test
barPlot

Plotting PMCMR Objects
chaAllPairsNashimotoTest

All-Pairs Comparisons for Simply Ordered Mean Ranksums
dscfAllPairsTest

Multiple Comparisons of Mean Rank Sums
chenTest

Chen's Many-to-One Comparisons Test
algae

Algae Growth Inhibition Data Set
flignerWolfeTest

Testing Several Treatments With One Control
dunnettTest

Dunnett's Many-to-One Comparisons Test
durbinAllPairsTest

All-Pairs Comparisons Test for Balanced Incomplete Block Designs
hayterStoneTest

Hayter-Stone Test
grubbsTest

Grubbs Outlier Test
friedmanTest

Friedman Rank Sum Test
hartleyTest

Hartley's Maximum F-Ratio Test of Homogeneity of Variances
durbinTest

Durbin Test
kwManyOneNdwTest

Nemenyi-Damico-Wolfe Many-to-One Rank Comparison Test
leTest

Testing against Ordered Alternatives (Le's Test)
gamesHowellTest

Games-Howell Test
frdAllPairsMillerTest

Millers's All-Pairs Comparisons Test for Unreplicated Blocked Data
doubleGrubbsTest

Grubbs Double Outlier Test
print.osrt

osrt Printing
osrtTest

One-Sided Studentized Range Test
gesdTest

Generalized Extreme Studentized Deviate Many-Outlier Test
frdAllPairsExactTest

Exact All-Pairs Comparisons Test for Unreplicated Blocked Data
kwManyOneConoverTest

Conover's Many-to-One Rank Comparison Test
print.mandel

Mandel Printing
normalScoresAllPairsTest

Lu-Smith All-Pairs Comparison Normal Scores Test
normalScoresTest

Lu-Smith Normal Scores Test
mandelhTest

Mandel's h Test According to E 691 ASTM
print.PMCMR

PMCMR Printing
tamhaneDunnettTest

Tamhane-Dunnett Many-to-One Comparison Test
johnsonTest

Testing against Ordered Alternatives (Johnson-Mehrotra Test)
pageTest

Page Rank Sum Test
jonckheereTest

Testing against Ordered Alternatives (Jonckheere-Terpstra Test)
normalScoresManyOneTest

Lu-Smith Many-One Comparisons Normal Scores Test
power.tukey.test

Power Calculations for Balanced Tukey's Multiple Comparison Test
print.gesdTest

gesdTest Printing
scheffeTest

Scheffe's Test
chenJanTest

Chen and Jan Many-to-One Comparisons Test
frdHouseTest

House Test
frdManyOneDemsarTest

Demsar's Many-to-One Test for Unreplicated Blocked Data
chackoTest

Testing against Ordered Alternatives (Chacko's Test)
power.williams.test

Power calculations for minimum detectable difference of the Williams' test
qPCR

qPCR Curve Analysis Methods
print.trendPMCMR

trendPMCMR Printing
frdManyOneNemenyiTest

Nemenyi's Many-to-One Test for Unreplicated Blocked Data
plot.mandel

Plotting mandel Objects
frdManyOneExactTest

Exact Many-to-One Test for Unreplicated Blocked Data
print.powerOneWayPMCMR

PowerOneWayPMCMR Printing
manyOneUTest

Multiple Comparisons with One Control (U-test)
mrrTest

Madhava Rao-Raghunath Test for Testing Treatment vs. Control
summary.PMCMR

Summarize an PMCMR Object
reviewers

Reviewers
siegelTukeyTest

Siegel-Tukey Rank Dispersion Test
shirleyWilliamsTest

Shirley-Williams Test
lsdTest

Least Significant Difference Test
summary.mandel

Object Summary for class "mandel"
summary.gesdTest

Summarize an gesdTest Object
williamsTest

Williams Trend Test
powerMCTests

Power Simulation for One-Factorial All-Pairs and Many-To-One Comparison Tests
print.powerPMCMR

PowerPMCMR Printing
powerOneWayTests

Power Simulation for One-Factorial Single Hypothesis Tests
steelTest

Steel's Many-to-One Rank Test
toTidy

Convert a PMCMR or osrt Object to a Data.Frame
summary.trendPMCMR

Summarize an trendPMCMR Object
steelsKSampleTest

Steel's k-Treatments vs. Control Test
trout

Data from a Dose-Response Experiment with Trouts
summaryGroup

Grouped Summary of an PMCMR Object
vanWaerdenTest

van der Waerden's Normal Scores Test
welchManyOneTTest

Welchs's Many-To-One Comparison Test
qDunnett

Dunnett Distribution
Cochran

Cochran's distribution
Mandel-h

Mandel's h Distribution
Grubbs

Grubbs distribution
Mandel-k

Mandel's k Distribution
GSTTest

Generalized Siegel-Tukey Test of Homogeneity of Scales
NPMTest

All-Pairs Comparisons for Simply Ordered Mean Ranksums
Pentosan

Pentosan Dataset
Dgrubbs

Grubbs D* distribution
goreTest

Gore Test
kruskalTest

Kruskal-Wallis Rank Sum Test
kwAllPairsConoverTest

Conover's All-Pairs Rank Comparison Test
kwManyOneDunnTest

Dunn's Many-to-One Rank Comparison Test
spearmanTest

Testing against Ordered Alternatives (Spearman Test)
stepDownTrendTest

Step Down Trend Tests
power.dunnett.test

Power Calculations for Balanced Dunnett's Many-to-One Comparison Test
quadeAllPairsTest

All-Pairs Comparisons for Unreplicated Blocked Data (Quade's All-Pairs Test)
tamhaneT2Test

Tamhane's T2 Test
summary.osrt

Summarize an osrt Object
mackWolfeTest

Mack-Wolfe Test for Umbrella Alternatives
tukeyTest

Tukey's Multiple Comparison Test
uryWigginsHochbergTest

Ury, Wiggins, Hochberg Test
shanTest

Testing against Ordered Alternatives (Shan-Young-Kang Test)
kwAllPairsDunnTest

Dunn's All-Pairs Rank Comparison Test
kwAllPairsNemenyiTest

Nemenyi's All-Pairs Rank Comparison Test
mandelkTest

Mandel's k Test According to E 691 ASTM
plot.PMCMR

Plotting PMCMR Objects
skillingsMackTest

Skillings-Mack Test
snkTest

Student-Newman-Keuls Test
vanWaerdenAllPairsTest

van-der-Waerden's All-Pairs Comparison Normal Scores Test
vanWaerdenManyOneTest

van-der-Waerden's Many-One Comparisons Normal Scores Test