Re: [R] MANOVA polynomial contrasts

2012-07-30 Thread John Fox
21 PM > To: jesse@sympatico.ca > Cc: r-help@r-project.org > Subject: Re: [R] MANOVA polynomial contrasts > > Dear Prof. John Fox, > I found the paper very useful. Thank you very much for attaching the link! > Which type of SS (II or III) do you suggest for a multivariate mod

Re: [R] MANOVA polynomial contrasts

2012-07-30 Thread Manzoni, GianMauro
GMM, > > > -Original Message- > > From: Manzoni, GianMauro [mailto:gm.manz...@auxologico.it] > > Sent: July-30-12 9:49 AM > > To: John Fox > > Cc: r-help@r-project.org; Greg Snow > > Subject: Re: [R] MANOVA polynomial contrasts > > > > Dear Prof. Jo

Re: [R] MANOVA polynomial contrasts

2012-07-30 Thread Manzoni, GianMauro
Dear Prof. John Fox, thank you very much for your suggestions. However, I still do not know how to use the contrasts after generating them. Once I generate the matrix with the polynomial contrasts, what are the following steps toward the statistical test? A whole example would be very useful. Tha

Re: [R] MANOVA polynomial contrasts

2012-07-30 Thread jesse.fox
Dear GMM, > -Original Message- > From: Manzoni, GianMauro [mailto:gm.manz...@auxologico.it] > Sent: July-30-12 9:49 AM > To: John Fox > Cc: r-help@r-project.org; Greg Snow > Subject: Re: [R] MANOVA polynomial contrasts > > Dear Prof. John Fox, > thus all I shou

Re: [R] MANOVA polynomial contrasts

2012-07-30 Thread Manzoni, GianMauro
Dear Prof. John Fox, thus all I should do to test quadratic and cubic effects is to change the second argument of the linearHypothesis() function, right? So, for testing the cubic effect: > linearHypothesis (mod, "f.C") Is there a chapter or paragragh about contrasts in your book "An R companion

Re: [R] MANOVA polynomial contrasts

2012-07-30 Thread John Fox
Dear Gian Mauro, On Mon, 30 Jul 2012 14:44:44 +0200 "Manzoni, GianMauro" wrote: > Dear Prof. John Fox, > thank you very much for your suggestions. > However, I still do not know how to use the contrasts after generating them. > Once I generate the matrix with the polynomial contrasts, what are t

Re: [R] MANOVA polynomial contrasts

2012-07-25 Thread John Fox
Dear Gian, How contrasts are created by default is controlled by the contrasts option: > getOption("contrasts") unordered ordered "contr.treatment" "contr.poly" So, unless you've changed this option, contr.poly() will be used to generate orthogonal polynomial contrasts

Re: [R] MANOVA polynomial contrasts

2012-07-25 Thread Manzoni, GianMauro
Dear Greg Snow, thank you very much for your suggestions. However, I need an example in order to understand fully. I was told that, given the ordinal factor, I do not need to specify the contr.poly function because R does it automatically. However, I don not know if I have to add an argument into t

Re: [R] MANOVA polynomial contrasts

2012-07-24 Thread Greg Snow
You should not need to write them yourself. Look at the contr.poly function along with the C function (Note uppercase C) or the contrasts function. On Monday, July 23, 2012, Manzoni, GianMauro wrote: > Dear all, > I am quite new to R and I am having trouble writing the polynomial > contrasts for

[R] MANOVA polynomial contrasts

2012-07-23 Thread Manzoni, GianMauro
Dear all, I am quite new to R and I am having trouble writing the polynomial contrasts for an ordinal factor in MANOVA. # I have a model such as this fit<-manova(cbind(Y1,Y2,Y3)~Groups,data=Events) # where groups is an ordinal factor with 4 levels # how to set polynomial contrasts for the "Groups"