Displaying 20 results from an estimated 600 matches similar to: "ANCOVA post-hoc test"
2012 Jan 11
2
problems with glht for ancova
I've run an ancova, edadysexo is a factor with 3 levels,and log(lcc) is the
covariate (continous variable)
I get this results
> ancova<-aov(log(peso)~edadysexo*log(lcc))
> summary(ancova)
Df Sum Sq Mean Sq F value Pr(>F)
edadysexo 2 31.859 15.9294 803.9843 <2e-16 ***
log(lcc) 1 11.389 11.3887 574.8081 <2e-16 ***
2010 Mar 15
1
Multiple comparisons for a two-factor ANCOVA
I'm trying to do an ANCOVA with two factors (clipping treatment with two
levels, and plot with 4 levels) and a covariate (stem diameter). The
response variable is fruit number. The minimal adequate model looks like
this:
model3<-lm(fruit~clip + plot + st.dia + clip:plot)
I'd like to get some multiple comparisons like the ones from TukeyHSD, but
TukeyHSD doesn't work with the
2011 Dec 11
2
multiple comparison of interaction of ANCOVA
Hi there,
The following data is obtained from a long-term experiments.
> mydata <- read.table(textConnection("
+ y year Trt
+ 9.37 1993 A
+ 8.21 1995 A
+ 8.11 1999 A
+ 7.22 2007 A
+ 7.81 2010 A
+ 10.85 1993 B
+ 12.83 1995 B
+ 13.21 1999 B
+ 13.70 2007 B
+ 15.15 2010 B
+ 5.69 1993 C
+ 5.76 1995 C
+ 6.39 1999
2007 Jan 09
2
posthoc tests with ANCOVA
dear all,
I want to perform a posthoc test for my ANCOVA:
a1<-aov(seeds~treatment*length)
With
summary(glht(a1, linfct = mcp(treatment = "Tukey")))
R tells me: "covariate interactions found -- please choose appropriate
contrast"
How do I build these contrasts?
Ideally, I would like to have the posthoc test for the ANCOVA including
a block-effect
2010 May 11
2
ANCOVA in R, single CoVar, two Variables
Hello,
I am VERY new to R, just picking it up infact. I have got my head around the
basics of ANOVA with post hoc tests but I am struggling with regression,
especially with ANCOVAs.
I have two sets of data, one of type A, one of type B. Both have been placed
in a wind tunnel and sampled every week. The co variate is of course the
days since the start.
An example is
day A B
0 10.0 10.0
7 9.0
2017 Nov 03
0
Pairwise comparison, TukeyHSD, glht, ANCOVA
Hi,
I'm wondering if i can use the function "TukeyHSD" to perform the all pairwise comparisons of a "aov()" model with one factor (e.g., GROUP) and one continuous covariate (e.g., AGE). I did for example:
library(multcomp)
data('litter', package = 'multcomp')
litter.aov <- aov(weight ~ gesttime + dose, data = litter)
TukeyHSD(litter.aov, which =
2013 Mar 13
1
multi-comparison of means
Hi all:
I have a question about multi-comparison.
The data is in the attachment.
My purpose:
Compare the predicted means of the 3 methods(a,b,c) pairwisely.
I have 3 ideas:
#idea1
result_aov<-aov(y~ method + x1 + x2)
TukeyHSD(result_aov)
diff lwr upr p adj
b-a 0.845 0.5861098 1.1038902 0.0000001
c-a 0.790 0.5311098 1.0488902 0.0000002
c-b -0.055 -0.3138902
2006 May 20
1
ANCOVA, Ops.factor, singular fit???
I'm trying to perform ANCOVAs in R 1.14, on a Mac OS X, but I can't figure out
what I am doing wrong. Essentially, I'm testing whether a number of
quantitative dental measurements (the response variables in each ANCOVA) show
sexual dimorphism (the sexes are the groups) independently of the animal's size
(the concomitant variable). I have attached a 13-column matrix as a data
2012 Dec 03
0
Nested ANCOVA question
Hello R experts,
I have having a difficult time figuring out how to perform and interpret an ANCOVA of my nested experimental data and would love any suggestions that you might have.
Here is the deal:
1) I have twelve tanks of fish (1-12), each with a bunch of fish in them
2) I have three treatments (1-3); 4 tanks per treatment. (each tank only has one treatment applied to it)
3) I sampled
2000 Dec 13
1
comparing ancova models
Hello, all.
I've got what is probably a simple question about comparison of models
using anova, specifically about the situations in which it's valid. I
understand, I think, what's going on when the models are strictly
nested (as most are in the demo(lm) examples). My question involves
what happens when the models aren't strictly nested.
In my particular case, I'm doing
2000 Dec 13
0
comparing ancova models: summary
Thanks to John Fox, Brian Ripley, and Peter Dalgaard for responding.
The short answer (as in Peter Dalgaard's reply, already posted to the
list) is that the models I'm concerned with can in fact be compared using
ancova. The key fact is that while the parameters may not be nested, the
subspaces I'm examining are.
An additional note from Prof. Ripley on AIC and BIC (which I quote in
2018 Apr 24
0
TukeyHSD and glht differ for models with a covariate
I have a question about TukeyHSD and the glht function because I'm
getting different answers when a covariate is included in model for
ANCOVA.? I'm using the cabbages dataset in the 'MASS' package for
repeatability.? If I include HeadWt as a covariate, then I get different
answers when performing multiple comparisons using TukeyHSD and the glht
function. The difference appears
2010 Mar 11
0
Multiple comparisons with a mixed effects model
Hello,
I have used R in the past to conduct multiple comparisons on standard linear models, but am a bit confused as to how to go about doing it with a mixed effects model.
I am conducting a bioindication study using carabid beetles in which I have four treatment types (forest harvest types with varying levels of canopy structure retention), and am using canopy closure percent as a covariate in
2002 Oct 25
4
points on a sphere
Not an R question directly, but has anyone got a method for placing a
moderately large number of (near) equi-spaced points on a sphere? I have a
nasty feeling platonic solids are needed for exact solutions and I'm
thinking of samplings involving around 200 - 1000 regularly-spaced points,
Thanks,
Richard Rowe
Richard Rowe
Senior Lecturer
Department of Zoology and Tropical Ecology, James
2012 Jun 22
0
R: Error with glht function: Error in mcp2matrix(model, linfct = linfct) : Variable(s) 'Type' have been specified in 'linfct' but cannot be found in 'model'!
Hello everybody,
problem solved, there was a typo.
I wrote Type instead of Material
Best
----Messaggio originale----
Da: angelo.arcadi@virgilio.it
Data: 22-giu-2012 11.05
A: <r-help@r-project.org>
Ogg: Error with glht function: Error in mcp2matrix(model, linfct = linfct) : Variable(s) 'Type' have been specified in 'linfct' but cannot be found in 'model'!
2012 Jun 22
0
Error with glht function: Error in mcp2matrix(model, linfct = linfct) : Variable(s) 'Type' have been specified in 'linfct' but cannot be found in 'model'!
Dear list members,
I get the following error when using the glht function to perform a post hoc analysis for an ANOVA with repeated measures:
require(nlme)
lme_H2H_musicians = lme(H2H ~ Emotion*Material, data=musicians, random = ~1|Subject)
require(multcomp)
summary(glht(lme_H2H_musicians, linfct=mcp(Type = "Tukey")), test = adjusted(type = "bonferroni"))
Error in
2012 Jul 04
2
Difference between two-way ANOVA and (two-way) ANCOVA
Hi!
as my subject says I am struggling with the different of a two-way ANOVA and
a (two-way) ANCOVA.
I found the following examples from this webpage:
http://www.statmethods.net/stats/anova.html
# One Way Anova (Completely Randomized Design)
fit <- aov(y ~ A, data=mydataframe)
# Randomized Block Design (B is the blocking factor)
fit <- aov(y ~ A + B, data=mydataframe)
# Two Way
2010 May 17
1
Query on linear mixed model
Hi R Forum
I am a newbie to R and I have been amazed by what
I can get my team to accomplish just by
implementing Scripting routines of R in all my
team's areas of interest..
Recently i have been trying to adopt R scripting
routine for some analysis with longitudanal data..
I am presenting my R script below that I have
tried to make to automate data analysis for
longitudanal data by employing
2008 Jun 02
1
Ancova: formula with a common intercept
I have some data with two categorises plus/minus (p53) and a particular
time (Time) and the outcome is a continuous vairable (Result). I set up
a maximum model.
ancova <- lm(Result~Time*p53)
> summary(ancova)
..
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.05919 0.55646 0.106 0.916
Time -0.02134 0.01785 -1.195 0.241
p53plus
2010 Nov 22
1
sm.ancova graphic
Hi R-Users,
I am working with sm.ancova (in the package sm) and I have two problems with the graph, which is automatically generated when sm.ancova() is run.
1-Besides of the fitted lines, the observed data appeared automatically in the graph. I prefer that only fitted lines appear. I check the sm.options, but I could not find the way that the observed data do not appear in the graph.
2-I