Displaying 2 results from an estimated 2 matches for "vp11".
Did you mean:
v11
2013 Feb 08
1
help with double looping
hi there,
I have a dataframe in the shape vA1, vA2,..., vA11, vB1, vB2,..., VB11,......., VP1, VP2,...., VP11 (so 16 times a sequence of 11 variables)
I am trying to build a double loop so that i can apply the function (i-1)*v(i) to the first 10 variables, then the same for the next 10 variables, etc... 16 times.
I have tried the following with no luck:
iscores<-list()
for (j in seq(1,166,11))
{...
2004 Jul 16
1
Fixed and random factors in aov()
...e a textbook example: One fixed factor (Game, 4
levels) and one random factor (Store, 12 levels), response is Points.
The random factor Store is nested in Game. I tried
> str(kh.df)
`data.frame': 48 obs. of 4 variables:
$ Subj : Factor w/ 48 levels "vp1","vp10","vp11",..: 1 12 23 34 44...
$ Game : Factor w/ 4 levels "S1","S2","S3",..: 1 1 1 1 1 1 1 1 ...
$ Store : Factor w/ 12 levels "KH1","KH10","KH11",..: 1 1 1 1 5 ...
$ Points: num 7 9 12 7 6 5 8 6 9 6 ...
> summary(aov(Points ~ Gam...