Questions tagged [posthoc]

181 questions
3
votes
1 answer

Correction for Multiple Comparison of Means - Tukey HSD in Python

I have a dateset with 4 conditions (A, B, C, D). What I observed running a One-Way Anova is that there is a linear increase of my dependent variable (Reaction Time, RT) in the 4 conditions. I would like to run a post-hoc test to see if the increases…
giorgio-p
  • 91
  • 1
  • 5
3
votes
1 answer

Tukey HSD for categorical and continuous variables in R

I want to do a post-hoc test for a significant ANOVA I've done successfully. I have 5 conditions (target_onset) across which I want to compare reaction times (key_resp.rt) in a df called data_clean. target_onset and key_resp.rt are columns. This is…
anntree
  • 261
  • 3
  • 10
3
votes
2 answers

R: Run multiple post hoc tests at once, using emmeans package

I'm working on a dataset with several different types of proteins as columns. It kinds of looks like this This is simplified, the original dataset contains over 100 types of proteins. I wanted to see if the concentration of a protein differs by…
3
votes
0 answers

glht in glmer: need to relevel?

I used glmer to analyze reaction times in a repeated-measures design with 2 faixed factors (3 levels each) and 1 random factor. As I have a significant interaction, I would like to do post-hoc to get contrasts. I first used relevel to change the…
VeroB
  • 31
  • 1
3
votes
0 answers

R function for post hoc pairwise comparisons of MANOVA

Anyone know about an R function for post hoc pairwise comparisons after a MANOVA test, that is, check for groups differences for several variables (I only know functions to do ANOVA post hoc comparisons such as pairwise.t.test() or TukeyHSD(), but…
A.N.Y.one
  • 31
  • 4
3
votes
3 answers

post hoc test for a two way mixed model anova

I am doing a repeated measures anova with a mixed model. I would like to run a post hoc test to see the p-values of the interaction TREAT*TIME, but I only managed to use the following ghlt Tukey test which do not give me the interaction I am looking…
kumbu
  • 145
  • 2
  • 16
3
votes
3 answers

How to obtain lsmeans() pairwise contrasts with custom vcov?

I would like to get pairwise comparisons of adjusted means using lsmeans(), while supplying a robust coefficient-covariance matrix (e.g. vcovHC). Usually functions on regression models provide a vcov argument, but I can't seem to find any such…
landroni
  • 2,902
  • 1
  • 32
  • 39
3
votes
1 answer

Post hoc tukey test for two way mixed model ANOVA

I and some of my students have searched for a solution to this in numerous places with no luck and literally for months. I keep on being referred to the lme command which I do NOT want to use. The output provided is not the one my colleagues or…
Steve
  • 31
  • 3
3
votes
2 answers

Post-hoc tests for one-way ANOVA with Welch's correction in R

I have run a one-way ANOVA test with welch's correction using oneway.test() in R, as I have data that violate the assumption of equal variance (transformations did not solve the problem). A simple data example: > dput(df) structure(list(Count =…
jjulip
  • 1,093
  • 4
  • 16
  • 24
2
votes
2 answers

Post hoc test in R for repeated measures ANOVA with 2 within-variables

Say, I have a full factorial design with 30 participants (ppt_id), each of which was tested in 4 conditions: (left side + blue color) AND (left side + red color) AND (right side + blue color) AND (right side + red color) And my dependent variable is…
Alex M
  • 129
  • 1
  • 7
2
votes
1 answer

In R studio I receive an error for a post hoc test TukeyHSD for a two-way ANOVA with an interaction

This is everything I entered and the output. two.way <- aov(Facefactor ~ Teamsport + College + College:Teamsport, data = Male_Data_R_Face_Factor) summary(two.way) Df Sum Sq Mean Sq F value Pr(>F) Teamsport 1 0.29 …
Ryan Kron
  • 23
  • 3
2
votes
1 answer

glht and emmeans returning crazy compact letters for unbalanced dataset in R

Hi I am having a problem when trying to get glht or emmeans to define compact letters for a dataset with unequal sample size. When using glht or emmeans i get these crazy compact letters. What am I doing wrong? Could it be because of unequal…
Alexander
  • 21
  • 5
2
votes
0 answers

multiple comparison with spatstat

I'm running a spatial model using spatstat. Following model fitting, I would like to compare predictions at a few distances and say whether they are significantly different from each other. In the basis of the dataset, I have a bunch of points…
user2602640
  • 640
  • 6
  • 21
2
votes
2 answers

glmmTMB, post-hoc testing and glht

I am using glmmTMB to analyze a negative binomial generalized linear mixed model (GLMM) where the dependent variable is count data (CT), which is over-dispersed. There are 115 samples (rows) in the relevant data frame. There are two fixed effects…
Bob
  • 179
  • 2
  • 11
2
votes
0 answers

emmeans contrasts of contrasts?

How does one perform a contrast of specified contrasts using the emmeans package? I am interested in the difference of the differences at two time points. Where I have used the pairs(LF) statement at the end I get the correct estimates, but the same…
LucaS
  • 887
  • 1
  • 9
  • 22
1
2
3
12 13