how to extract the F value in anova from a permutation test

#1
Hi
I did a permutation test using the following code
Code:
perm=replicate(1000,anova(lm(sample(genenormal)~as.factor(snptest1))))
the I got the following this is just one column , I have more than that :

Code:
                  V1
Df             c(2,1092)
Sum sq      c(48.96,9782.66)
Mean sq    c(24.48,8.95) 
F value      c(2.733,NA)
Pr(>F)       c(0.0654,NA)
Question is how to extract the F value from each column to have a vector of just F values without the NA

what I want is the value of 2.733

Thanks
 
Last edited:
#2
I cannot believe the code you have posted has generated the result.

However, it seems to be, your result is a named list or a list with attributes Df, Sum sq ... (you have to check this assumption using the command
Code:
str(perm)
If you can count on the structure of the perm object you can use
Code:
fvaluevector= perm[4]