[R] bartlett.test()

hanen hanen.mastouri at yahoo.fr
Thu Jun 5 10:54:31 CEST 2008


i'm trying to test the homogeneity of variance of 92 samples each one
contains 3 observations.
to use bartlett.test function i have created a (3,92) matrix (named xx):
>bartlett.test(xx)

this message appears:

>Erreur dans bartlett.test.default(xx) : 
  l'argument "g" est manquant, avec aucune valeur par défaut

when i checked the help i have understood that in g i should specified my
différent samples in the case that xx is not a list.So i have tried to
convert mode's xx in the list by:

>bartlett.test(list(xx))

this message appears:

>Erreur dans bartlett.test.default(list(xx)) : 
  'x' must be a list with at least 2 elements

what should i do?
and if the solution is to use a data frame how can i add the 92
columns'names to such data.frame? because the use of the function
names(data.frame)<-list("...  and entering 92 words it seems painfull.

 is there any one who can help me now?

please answer me as soon as possible. 

-- 
View this message in context: http://www.nabble.com/bartlett.test%28%29-tp17665173p17665173.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list