Displaying 20 results from an estimated 10000 matches similar to: "Using ANCOVA in R"
2010 Apr 01
2
Adding regression lines to each factor on a plot when using ANCOVA
Dear R users,
i'm using a custom function to fit ancova models to a dataset. The data are
divided into 12 groups, with one dependent variable and one covariate. When
plotting the data, i'd like to add separate regression lines for each group
(so, 12 lines, each with their respective individual slopes). My 'model1'
uses the group*covariate interaction term, and so the coefficients
2012 Feb 12
2
ANCOVA post-hoc test
Could you please help me on the following ANCOVA issue?
This is a part of my dataset:
sampling dist h
1 wi 200 0.8687212
2 wi 200 0.8812909
3 wi 200 0.8267464
4 wi 0 0.8554508
5 wi 0 0.9506721
6 wi 0 0.8112781
7 wi 400 0.8687212
8 wi 400 0.8414646
9 wi 400 0.7601675
10 wi 900 0.6577048
11 wi 900
2011 Jun 21
1
Help interpreting ANCOVA results
Please help me interpret the following results.
The full model (Schwa~Dialect*Prediction*Reduction) was reduced via both
update() and step().
The minimal adequate model is:
ancova<-lm(Schwa~Dialect+Prediction+Reduction+Dialect:Prediction)
Schwa is response variable
Dialect is factor, two levels ("QF","SF")
Prediction is factor, two levels ("High","Low")
2008 Oct 15
1
Parameter estimates from an ANCOVA
Hi all,
This is probably going to come off as unnecessary (and show my ignorance)
but I am trying to understand the parameter estimates I am getting from R
when doing an ANCOVA. Basically, I am accustomed to the estimate for the
categorical variable being equivalent to the respective cell means minus the
grand mean. I know is the case in JMP - all other estimates from these data
match 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
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
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
2008 Nov 21
2
Growth rate determination using ANCOVA
I'm a programmer in a biology lab who is starting to use R to automate
some of our statistical analysis of growth rate determination. But I'm
running into some problems as I re-code.
1) Hypotheses concerning Slope similarity/difference:
I'm using R's anova(lm()) methods to analyse a model which looks
like this:
growth.metric ~ time * test.tube
I understand that
2006 Jun 02
1
ANCOVA in S-plus/R?
Dear R user:
I have a question about doing ANCOVA in S-plus or R.
I know that many users use lm to do the regression and check the ANCOVA. But is there a way to get the traditional Table form of the ANCOVA test through S-plus (like what we would get from SPSS or SAS)?
The problem I’m interested in is whether or not there is a treatment effect on some medical measurement. I will
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
2011 Mar 31
2
ANCOVA for linear regressions without intercept
Hello R experts
I have two linear regressions for sexes (Male, Female, Unknown). All have a good correlation between body length (response variable) and head length (explanatory variable). I know it is not recommended, but for a good practical reason (the purpose of study is to find a single conversion factor from head length to body length), the regressions need to go through the origin (0
2011 Oct 07
1
ANOVA/ANCOVA Repeated Measure Mixed Model
Hello,
I am trying to test some results I have for significance. It has been
recommended that I use R and I am completely new to this.
Set-up:
Groups: two groups of 8 subjects (16 total)
Two conditions: alert and passive
Measurements: responses for three different stimuli (A, B, and C)
measured in each condition
Experiment: Testing the order of conditions
Group one: Alert A, B
2004 Aug 27
1
ANCOVA
Dear R-help list,
I am attempting to understand the proper formulation of ANCOVA's in R. I
would like to test both parallelism and intercept equality for some data
sets, so I have generated an artificial data set to ease my understanding.
This is what I have done
#Limits of random error added to vectors
min <- -0.1
max <- 0.1
x <- c(c(1:10), c(1:10))+runif(20, min, max)
x1 <-
2007 Jul 11
2
inquiry about anova and ancova
Dear R users,
I have a rather knotty analysis problem and I was hoping that
someone on this list would be able to help. I was advised to try this list
by a colleague who uses R but it is a statistical inquiry not about how to
use R.
In brief I have a 3x2 anova, 2 tasks under 3 conditions, within subjects. I
also took a variety of personality measures that might influence the results
under the
2012 Jul 21
2
car::Anova - Can it be used for ANCOVA with repeated-measures factors.
Dear list,
I would like to run an ANCOVA using car::Anova with repeated measures factors, but I can't figure out how to do it. My (between-subjects) covariate always interacts with my within-subject factors.
As far as I understand ANCOVA, covariates usually do not interact with the effects of interest but are simply additive (or am I wrong here?).
More specifically, I can add a covariate as
2004 Jan 15
1
nlme vs aov with Error() for an ANCOVA
Hi
I compouted a multiple linear regression with repeated measures on one
explanatory variable:
BOLD peak (blood oxygenation) as dependent variable,
and as independent variables I have:
-age.group (binaray:young(0)/old(1))
-and task-difficulty measured by means of the reaction-time 'rt'. For
'rt' I have repeated measurements, since each subject did 12 different
tasks.
-> so
2013 Nov 16
1
repeated-measures multiple regression/ANCOVA/MANCOVA
Dear List,
I am trying to analyze a dataset where I have 1 continuous
between-item variable (C), and 2 factorial within-item variables (3-
and 2-level: F3, F2). I'm interested in whether slope of C is
different from 0 at different combinations of F3 and F2, and whether
it varies between these combinations.
And unfortunately I need a decent anova-like table with p-values. The
reason is that
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
2004 Mar 17
1
ANCOVA when you don't know factor levels
Hello people
I am doing some thinking about how to analyse data on dimorphic animals
- where different individuals of the same species have rather different
morphology. An example of this is that some male beetles have large
horns and small wings, and rely on beating the other guys up to get
access to mates, whereas others have smaller horns and larger wings,
and rely on mobility to
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 ***