tsunhin wong wrote:
Dear R users,
I have copied for following table from an article on "Using confidence
intervals in within-subject designs":
Subject 1sec 2sec 5sec
1 10 13 13 12.00
2 6 8 8 7.33
3 11 14 14 13.00
4 22 23 25 23.33
5 16 18 20 18.00
6 15 17 17 16.33
7 1 1 4 2.00
8 12 15 17 14.67
9
str() is again your friend.
> str(asummary)
List of 2
$ Error: subject :List of 1
..$ :Classes ‘anova’ and 'data.frame':1 obs. of 5 variables:
.. ..$ Df : num 9
.. ..$ Sum Sq : num 943
.. ..$ Mean Sq: num 105
.. ..$ F value: num NA
.. ..$ Pr(>F) : num NA
..- at
As another follow-up related to aov, I want to extract values
(Residual interaction mean square & interaction DF) from the results:
asummary<-summary(aov.recall)
The results are in a list() format with 3 lists, and contents within
each list are without "names".
I am not able to do something like i
On Mon, Jun 1, 2009 at 7:50 PM, tsunhin wong wrote:
> But I have some follow-up questions:
> 1. In aov, why IVs (subject & condition) cannot be in number format?
Put simply, because that's the only way to obtain the values you
observe in the paper you're reading. :Op Factorizing tells the ANOVA
Although you factorized subject and condition when you created them as
separate objects, this didn't survive cbind() then as.data.frame(),
thus
> example<-data.frame(cbind(subject,condition,recall))
> str(example)
'data.frame': 30 obs. of 3 variables:
$ subject : int 1 2 3 4 5 6 7 8 9 10 ...
I have reformatted the data input in the following ways, and I get the
normal results:
>subject<-factor(c("s1","s2","s3","s4","s5","s6","s7","s8","s9","s10","s1","s2","s3","s4","s5","s6","s7","s8","s9","s10","s1","s2","s3","s4","s5","s6","s7","s8","s9","s10"))
>condition<-factor(c("c1","c1","c1","c
Dear R users,
I have copied for following table from an article on "Using confidence
intervals in within-subject designs":
Subject 1sec 2sec 5sec
1 10 13 13 12.00
2 6 8 8 7.33
3 11 14 14 13.00
4 22 23 25 23.33
5 16 18 20 18.00
6 15 17 17 16.33
7 1 1 4 2.00
8 12 15 17 14.67
9 9 12 12 11.00
10 8 9
7 matches
Mail list logo