Questions tagged [posthoc]

181 questions
19
votes
1 answer

R: Tukey posthoc tests for nnet multinom multinomial fit to test for overall differences in multinomial distribution

I fitted a mutinomial model using nnet's multinom function using (in this case on data giving the diet preference of male and female and different size classes of alligators in different lakes)…
Tom Wenseleers
  • 7,535
  • 7
  • 63
  • 103
15
votes
1 answer

R: Plotting predictions of MASS polr ordinal model

I fitted a proportional odds cumulative logit model on ordinal data using MASS's polr function using (in this case on data giving the preference for different kinds of cheese)…
Tom Wenseleers
  • 7,535
  • 7
  • 63
  • 103
13
votes
1 answer

Planned contrasts using ezANOVA output in R

I've been looking into using planned contrasts as opposed to post-hoc t-tests. I typically use ezANOVA (Type III ANOVA) but it seems that conducting planned contrasts using ezANOVA is not currently catered for. aov() on the other hand is a Type I…
Docconcoct
  • 2,040
  • 4
  • 28
  • 52
7
votes
1 answer

multcomp Tukey-Kramer

I have an experiment that is unbalanced where at three sites (L, M, H) we measure a parameter (met) in four different vegetation types (a, b, c, d). All vegetation types are present at all three sites. Vegetation types are replicated 4 times at L…
thijs van den bergh
  • 608
  • 1
  • 9
  • 17
6
votes
3 answers

How can I classify post-hoc test results in R?

I am trying to understand how to work with ANOVAs and post-hoc tests in R. So far, I have used aov() and TukeyHSD() to analyse my data. Example: uni2.anova <- aov(Sum_Uni ~ Micro, data= uni2) uni2.anova Call: aov(formula = Sum_Uni ~ Micro, data =…
Carolin
  • 63
  • 1
  • 4
6
votes
1 answer

Adding Tukey's significance letters to boxplot

I'm trying to create a boxplot with ggplot of a count (MedMean) on yaxis and various independent samples (Site_Name) on xaxis. ggplot(medianlist,aes(x=reorder(Site_Name,MedMean,FUN=median),y=MedMean))+ geom_boxplot() I want to add Tukey's…
B.Shermeister
  • 507
  • 2
  • 6
  • 17
5
votes
2 answers

Posthoc labels on anova boxplot in R

If I have some data and do an ANOVA and post-hoc tests, how do I make a boxplot that adds the post-hoc classification automatically, rather than having to edit the figure outside of R? For example, here are some data to get…
user1006644
  • 51
  • 1
  • 1
  • 2
5
votes
0 answers

ANOVA and TukeyHSD/post-hoc in R - groups for TukeyHSD?

I'm very new to R and need some help getting it to do the analysis I want (an analysis that I've been doing in GraphPad Prism but this can't handle large datasets) please. I have a dataframe like this (simplified): Gene Seq RBP Sites.length 1 …
4
votes
2 answers

ANOVA with repeated measures and TukeyHSD post-hoc test in R

I would like to do Tukey HSD post hoc tests for a repeated measure ANOVA. The entered formula "TukeyHSD" returns me an error. I can't find the answer in the forum. Can I ask for help? "treat" is repeated measures factor, "vo2" is dependent…
alunats
  • 89
  • 5
4
votes
1 answer

R Chi Squared Post Hoc Test

I'm new to R (and statistics in general) so apologies in advance for what's probably a very remedial question, but I'd appreciate any help! I'm trying to assess if there's a statistical advantage to starting a motor race in a given lane over…
eod1984
  • 41
  • 1
  • 2
4
votes
1 answer

Multiple Comparison Post-Hoc test for Levene's test

I'd like to do a pairwise comparison post-hoc test on Levene's test in R. I know how to do it in SAS using PROC GLM but I can't seem to figure out how to do it in R. Does anyone have any idea? In the example below I'd like to be able to test the…
Nathan
  • 323
  • 3
  • 13
4
votes
3 answers

How to change an order of samples in Tukey's test in R?

Problem: I would like to learn how can I change an order of samples for which Tukey's test in R calculates means and assign corresponding letters. Very simple example is below. I played with iris data and have found that there are differences in…
Ilya
  • 41
  • 1
  • 3
4
votes
3 answers

Is there a Pair-Wise PostHoc Comparisons for the Chi-Square Test in R?

I am wondering if there exists in R a package/function to perform the: "Post Hoc Pair-Wise Comparisons for the Chi-Square Test of Homogeneity of Proportions" (or an equivalent of it) Which is described here:…
Tal Galili
  • 24,605
  • 44
  • 129
  • 187
3
votes
0 answers

Multiple comparisons with gtsummary

Since my question is similar to one that's been asked before, I'll steal the reprex (also below), for consistency's sake, from Summary Table (mean + std.error) with p-values for 2-way anova I'm curious how to integrate a post hoc means comparisons…
Brinkley
  • 31
  • 4
3
votes
1 answer

Compact Letter Display (CLD) from pairwise comparisons p-values

I have been struggling for a while to make my own CLD from a table of pairwise comparisons with p-values. I know it is possible with multcomp, but I would like to generate my own DIY function that can be adapted for different post-hoc outputs. Of…
jordi
  • 91
  • 1
  • 7
1
2 3
12 13