Re: [R] bartlett.test()

From: S Ellison <S.Ellison_at_lgc.co.uk>
Date: Thu, 05 Jun 2008 11:34:17 +0100

>>> Birgitle <birgit.lemcke@systbot.uzh.ch> 05/06/2008 10:33:20 >>>
>I think you should specify your grouping factor:
Yes, the message says the grouping factor is missing.

But xx should not be a matrix.

Your x data should be in a (1-dimensional) vector of length 276, and so should your grouping factor.

Toy example:
x<-rnorm(9)
g<-factor(paste("Group",rep(1:3, each=3))) bartlett.test(x,g)

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help 
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 
and provide commented, minimal, self-contained, reproducible code.

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 05 Jun 2008 - 11:44:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 Jun 2008 - 12:30:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive