Hi Nezahat,
First, you are storing the code of the function "numeric" in x1 and
x2. You probably want to use:
x1<-numeric()
x2<-numeric()
Second, you are then storing the output of your aov summary (a list)
in x1, which requires a bit of analysis to get the information you
want (i.e. p value). Th
Dear Nezahat
In future it would be helpful if you
1 - gave us the data so we can reproduce what you are doing
2 - told us what the error was in case we cannot replicate ti
3 - did not post in HTML as it messes up everything in your post
What did you think x1 <- numeric was going to do?
Try
x1 <-
Let's say I have 12 observation of 5 variables and my first variable is
categorical (with 4 different levels). I am trying to find out statistical
significance difference between these categorical levels for each variable, but
my function is not working! Please note that my data "x" are in dat
1
A.K.
- Original Message -
From: David Arnold
To: r-help@r-project.org
Cc:
Sent: Thursday, November 29, 2012 3:39 PM
Subject: [R] Analysis of Variance
Hi, I am encountering a difficulty I don't understand. Be patient, I'm very
new to analysis of variance.
If I load this da
Hi D,
R is taking drug as numeric, you ned indicate to R that drug is a factor:
> example12_7$drug <-factor(example12_7$drug)
> ej2<-aov(time~drug,data=example12_7)
> summary(ej2)
Df Sum Sq Mean Sq F value Pr(>F)
drug 2 21.98 10.991 4.188 0.0345 *
Residuals 16 41.99
Hi, I am encountering a difficulty I don't understand. Be patient, I'm very
new to analysis of variance.
If I load this data:
example12_7=read.table("http://msemac.redwoods.edu/~darnold/math15/data/chapter12/example12_7.dat",header=TRUE)
The run the oneway.test:
oneway.test(time~drug,data=examp
Hi, I am trying to do an analysis of variance for an unbalanced design.
As a toy example, I use a dataset presented by K. Hinkelmann and O.
Kempthorne in "Design and Anaylysis of Experiments" (p353-356).
This example is very similar to my own dataset, with one difference: it
is balanced.
Thus it is
7 matches
Mail list logo