Questions tagged [rstatix]

for questions relating to the `rstatix` R package ("Pipe-Friendly Framework for Basic Statistical Tests")

89 questions
0
votes
0 answers

I can't install rstatix package

The package starts installing, and finally this code appears: Warning in install.packages : installation of package ‘rstatix’ had non-zero exit status Then I can't load rstatix in R. Any help? Thanks
0
votes
0 answers

trying to add p values from another data frame and values but values are matching the position in the frame not the variable name ggplot

Hi Everyone this is my first time posting a question. I am new to using R to generate figures. I am following a tutorial to add p values to a bar plot from datanovia. I am able to successfully compute adjusted p values for several comparisons and…
Jroot2
  • 1
  • 1
0
votes
0 answers

anova_test for (10) x (2) repeated measures design (N = 8) won't produce results for Mauchly's sphericity test

I want to conduct a (10) x (2) repeated measures ANOVA but can't seem to produce the results for Mauchly's test of sphericity in my output. I have tried using both the anova_test function from the rstatix package and the ezANOVA function from the ez…
0
votes
0 answers

Error running pairwise_t_test in R: x data are essentially constant

I posted this question a few days ago with no luck, so here we go again: I am trying to run a posthoc t-test on the following dataset: data.type <-…
ramateur
  • 41
  • 5
0
votes
0 answers

Shared keys in repeated measures ANOVA in R

I am trying to preform a repeated measures ANOVA in R with anova_test from the rstatix package. However I got the error shared keys in 98 rows. The dataframe In total I have 264 observations, in which I can select LOCATION (3), WATERLEVEL (11),…
0
votes
1 answer

The p value position is incorrectly defined as zero using rstatix::wilcox_test(), rstatix::add_xy_position(), and ggpubr::stat_pvalue_manual()

After performing an rstatix::wilcox_test() on my data I automatically added the y.position value for plotting the p value using rstatix::add_xy_position(). I then plotted the data and added the p value using ggpubr::stat_pvalue_manual(). The problem…
caparks
  • 47
  • 4
0
votes
1 answer

How to get R to read function variables with rstatix

I am trying to perform multiple, independent t-tests on a large data frame. When I create a function to loop over to run the tests rstatix will not read the function variables as variables and input their value. Example…
Noah_Seagull
  • 337
  • 5
  • 18
0
votes
1 answer

How to remove the empty space that is created with ggpubr stat_pvalue_manual hide.ns = true?

When the stat_pvalue_manual function of ggpubr is called: ggplot + stat_pvalue_manual(statistics, label = "p.adj.signif", coord.flip = TRUE, #hide.ns = TRUE, tip.length = 0, …
0
votes
1 answer

Problem with using tukey_hsd() inside a function and add_xy_position() in R

I have a problem with add_xy_position() after using tukey_hsd() from the rstatix package inside a function. This is what my function looks like: make_tukey_test <- function (data,variable,grouping_variable){ data %>% tukey_hsd(variable ~…
Kharon
  • 17
  • 3
0
votes
1 answer

Losing R factor organization when summarizing the data (dplyr)

I'm trying to summarize a numeric response variable (above ground biomass [AGB]) by several categorical factors as well as date as a part of a larger project. The date is being read as a character and is being organized as 4/10/2020, 4/8/2020,…
0
votes
0 answers

How to rearrange x-position of significance lines in ggplot?

Please find the data that I need to visualize here. I want to reveal if there is any variable that is significantly different than the reference variable. I draw the barplot, list the variables, which will be compared with each other, make the…
Erdem Erikçi
  • 33
  • 1
  • 6
0
votes
1 answer

Having issues running group comparison Shapiro-Wilks test for RMANOVA

I'm currently using the "weightloss" dataset from the datarium package to start running an RMANOVA. Here is the dput: dput(head(weightloss)) structure(list(id = structure(1:6, .Label = c("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11",…
Shawn Hemelstrand
  • 2,676
  • 4
  • 17
  • 30
0
votes
1 answer

rstatix package anova_test function gives partial eta squared despite setting effect.size = 'ges'

I am not able to obtain eta squared, only partial eta squared, when I use rstatix::anova_test. Example from the iris dataset: First using aov: aov <- aov(Sepal.Length ~ Sepal.Width + Species, data = iris) summary(aov) Df Sum Sq Mean Sq…
0
votes
1 answer

rstatix anova_test in R gives contrast error despite more than 2 levels

The following is subset of my data set: structure(list(ID = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L, 5L, 5L, 6L, 6L, 6L, 6L, 6L, 6L, 7L, 7L), .Label = c("5356", "5357",…
CanyonView
  • 401
  • 3
  • 15
0
votes
0 answers

Create a set of plots using ggpubr and rstatix by looping through variable names in a dataframe

I am trying to create a script using which I can automate the creation of a set of plots (faceted and grouped) with p-values calculated and plotted using the ggpubr and rstatix packages. set.seed(1234) create the dataset data_set <- …
jaydoc
  • 79
  • 1
  • 7