cran / PMCMRplus

:exclamation: This is a read-only mirror of the CRAN R package repository. PMCMRplus — Calculate Pairwise Multiple Comparisons of Mean Rank Sums Extended
6 stars 2 forks source link

checkmvARgs error when alternative "greater" is used with tamhaneDunnettTest and some others #3

Closed fiuzatayna closed 3 weeks ago

fiuzatayna commented 3 weeks ago

Upon running

fit <- aov(Value ~ Status, df)

followed by

dunnettTest(fit,
            alternative = c("greater"))

or

tamhaneDunnettTest(fit,
                   alternative = c("greater")

I get the following error

Error in checkmvArgs(lower = lower, upper = upper, mean = delta, corr = corr,  : 
  ‘upper’ not specified or contains NA

The original dataframe has 450 values, but here is the used df for this example.

structure(list(Value = c(0.780623375388565, 0.727513307534271, 
0.477490060443502, 0.365606235297979, 0.697288639524233, 0.596806289054213, 
0.440297731997596, -0.253429634991839, 0.478790822145771, 0.377012566559042, 
0.352202001799935, 0.99824404021298, 0.426109380003334, -0.298728400796222, 
-0.0225389769585656, -0.814180677100409, 0.380612674021393, -1.01263465455027, 
-0.922665324381413, 0.374028072712832), Status = structure(c(2L, 
3L, 5L, 6L, 6L, 9L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
1L, 1L, 1L), levels = c("Healthy", "Breast Cancer", "Colon Cancer", 
"Kidney Cancer", "Lung Cancer", "Lymphoma", "Melanoma", "Ovary Cancer", 
"Prostate Cancer"), class = "factor")), row.names = c(NA, -20L
), class = c("tbl_df", "tbl", "data.frame"))

Also, I see it has to do with the direction of the hypothesis cause if i go:

> dunnettTest(fit, alternative = c("less"))

The error changes slightly to:

Error in checkmvArgs(lower = lower, upper = upper, mean = delta, corr = corr,  : 
  ‘lower’ not specified or contains NA

Any help is appreciated. :)

gaborcsardi commented 3 weeks ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!

fiuzatayna commented 3 weeks ago

Thanks for the quick reply @gaborcsardi ! I'll get in contact :)