[R] bartlett.test()

Birgitle birgit.lemcke at systbot.uzh.ch
Thu Jun 5 11:33:20 CEST 2008


I think you should specify your grouping factor:

g   a vector or factor object giving the group for the corresponding
elements of x. Ignored if x is a list.

batlett.test(xx, groupingfactor)

Hope this helps.

Birgit


hanen wrote:
> 
> 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. 
> 
> 


-----
The art of living is more like wrestling than dancing.
(Marcus Aurelius)
-- 
View this message in context: http://www.nabble.com/bartlett.test%28%29-tp17665173p17665913.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list