similar to: ANCOVA in S-plus/R?

Displaying 20 results from an estimated 10000 matches similar to: "ANCOVA in S-plus/R?"

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
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 ***
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
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
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
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
2007 Oct 07
1
Question about aov
Hello R gurus, I am a beginner with R. I am doing an ANCOVA analysis using 'aov,' and need some help understanding how 'aov' works. I have a dataset (taken from http://faculty.vassar.edu/lowry/ch17pt2.html) looking at hypnotic induction. The variable 'X' is a measure of how susceptible the subject is to being hypnotized, the variable 'Y' is how well the
2008 Dec 09
1
ANCOVA
Hello,   Could you please help me in the following question: I have 16 persons 6 take 0.5 mg, 6 take 0.75 mg and 4 take placebo! Can I use the ANCOVA and t-test in this case? Is it possible in R?   Thank you in advance, Samuel [[alternative HTML version deleted]]
2006 Aug 22
2
how to run ANCOVA?
Dear all, I would like to know how to run an analysis of covariance in R. For example, I have a data frame ("data") consisting of two second-degree categorical variables ("diagnosis" and "gender"), one continous independent variable ("age") and one continous dependent variable ("response"). I ran a simple anova to see the effects of diagnosis
2009 Aug 20
1
ANCOVA with defined error terms
I am trying to run an ANCOVA with defined error terms. Thus I have to use AOV and not lm. my response variable is proportion of mice paw prints on track plates. These plates were placed on plots that had vegetation and fruit manipulated to two levels each (present or absent), and were sampled monthly for 14 months (repeated measures). The fully crossed factor design was also blocked. My sample
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
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
2006 Nov 20
1
Is there any R package to calcualte "Power" for ANCOVA
Dear list members: I searched the R-help for packages to calculate power for an ANCOVA problem I have. I have found power.t.test, power.anova.test. But it seems that I can not found one with ANCOVA. I have two datasetsets with variables: univariate response(one data with continous response and one with 0 and 1), treatment(two levels), covariates(x1,x2,x3). I would appreciate your help. Tony
2009 Feb 10
2
Mixed ANCOVA with between-Ss covariate?
Hi all, I have data from an experiment with 3 independent variables, 2 are within and 1 is between. In addition to the dependent variable, I have a covariate that is a single measure per subject. Below I provide an example generated data set and my approach to implementing the ANCOVA. However the output confuses me; why does the covariate only appear in the first strata? Presumably it should
2007 Jun 25
1
degrees of freedom in lme
Dear all, I am starting to use the lme package (and plan to teach a course based on it next semester...). To understand what lme is doing precisely, I used balanced datasets described in Pinheiro and Bates and tried to compare the lme outputs to that of aov. Here is what I obtained: > data(Machines) > summary(aov(score~Machine+Error(Worker/Machine),data=Machines)) Error: Worker
2007 Aug 02
6
Error message in lmer
I do not think anyone has answered this. > I'm trying to run a simple one-way ANCOVA with the lmer > function in R package lme4, but have encountered some > conceptual problem. The data file MyData.txt is like this: > > Group Subj Cov Resp > A 1 3.90 4.05 > A 2 4.05 4.25 > A 3 4.25 3.60 > A 4 3.60 4.20 > A 5 4.20 4.05 > A 6 4.05 3.85
2011 Aug 31
3
Converting anova/ancova summary to data frame
Hi! Can anyone tell me how to convert the anova/ancova summary output into a data frame? Thanks! Shane Phillips [[alternative HTML version deleted]]
2010 Dec 26
2
Doing a mixed-ANOVA after accounting for a covariate
Dear r helpers, I would like to look at the interaction between two two-level factors, one between and one within participants, after accounting for any variance due to practice (31 trials in each of two blocks) in the task. It seems to require treating practice as a covariate. All the examples I noticed for handling covariates (i.e. ANCOVA, including the ones in Faraway's "Practical
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
2010 Nov 24
0
Hospital ANOVA/ANCOVA problem
Hi everyone, I've only been using R for a week or so now, and am now required to work with some pretty mixed data at my hospital. Basically, we're looking to see if hypertension status (nominal) affects cardiac function (multiple & continuous). In order to do this, we've collected multiple echocardiograph data reports on each patient. 1. Each patient is coded either as 0 or 1