[R] Manova: Data similarly generated are significantly different.

2015-09-04 Thread Roger Xu
Dear R users, Hi. I don't know if my understanding of Manova test is correct. So I test with the following code and got strange results. Any help would be appreciated. y0, y1, and y2 are independently generated by the same method. They are each split into 20 groups by the same method. The

Re: [R] Manova: Data similarly generated are significantly different.

2015-09-04 Thread Duncan Murdoch
On 04/09/2015 5:18 PM, Roger Xu wrote: > y0 <- runif(100, 0, 1) > y1 <- runif(100, 0, 1) > y2 <- runif(100, 0, 1) > > y0 <- c(y0, runif(100, 0, 10) ) > y1 <- c(y1, runif(100, 0, 10) ) > y2 <- c(y2, runif(100, 0, 10) ) > > y0=as.numeric(unlist(y0)) > y1=as.numeric(unlist(y1)) >

Re: [R] MANOVA post hoc testing

2014-04-04 Thread John Fox
Dear Nicholas, On Fri, 4 Apr 2014 04:59:09 + nicholas.suraw...@csiro.au wrote: Greetings, I'm interested in performing some post hoc tests after conducting a multivariate analysis of covariance (MANCOVA) which I performed using the Anova function in the car package. The covariate did

[R] MANOVA post hoc testing

2014-04-03 Thread Nicholas.Surawski
Greetings, I'm interested in performing some post hoc tests after conducting a multivariate analysis of covariance (MANCOVA) which I performed using the Anova function in the car package. The covariate did not end up being statistically significant, but the single factor's effect on the

[R] MANOVA Question

2013-11-27 Thread Chris Linton
I'm running a MANOVA on survey data. The dependent variables are the ranking of each DV. So the respondent was asked to rank 7 different subject lines, each subject line is a DV with what the respondent ranked as datum. I had the code running yesterday, had a computer crash, then had to rewrite

[R] MANOVA summary.manova(m) : residuals have rank

2013-05-03 Thread Ozgul Inceoglu
Dear All, I am trying to perform MANOVA. I have table with 504 columns(species) and 36 rows) with two grouping (season and location) Zx - Z[c(4:504)] Zxm - as.matrix(Z) m- manova(Zxm~Season*location, data=Z) when I do summary.aov, I get respond for each species but summary.manova

Re: [R] MANOVA summary.manova(m) : residuals have rank

2013-05-03 Thread peter dalgaard
On May 3, 2013, at 14:59 , Ozgul Inceoglu wrote: Dear All, I am trying to perform MANOVA. I have table with 504 columns(species) and 36 rows) with two grouping (season and location) Zx - Z[c(4:504)] Zxm - as.matrix(Z) m- manova(Zxm~Season*location, data=Z) when I do summary.aov, I get

[R] MANOVA with repeated measures in R

2012-08-03 Thread angelo.arc...@virgilio.it
Dear list member, I deperately need an help in performing a MANOVA in R, but I encountered some problems both in the design and in the synthax with R. I conducted a listening experiment in which 16 participants had to rate the audio stimuli along 5 scales representing an emotion (sad,

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 gm.manz...@auxologico.it 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

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 for

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 should do to test quadratic and cubic

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.

Re: [R] MANOVA polynomial contrasts

2012-07-30 Thread Manzoni, GianMauro
@sympatico.ca 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 should do to test quadratic

Re: [R] MANOVA polynomial contrasts

2012-07-30 Thread John Fox
-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 model with 2 unbalanced factors and 2 covariates? I think that type III

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

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 for an

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 an

[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

Re: [R] MANOVA with random factor

2012-05-19 Thread peter dalgaard
From: Helios de Rosario [mailto:helios.derosa...@ibv.upv.es] Sent: Fri 18/05/2012 15.14 To: David Costantini; r-help@r-project.org Subject: Re: [R] MANOVA with random factor Hi, after re-reading I think that I misunderstood your question

Re: [R] MANOVA with random factor

2012-05-19 Thread David Costantini
-Original Message- From: peter dalgaard [mailto:pda...@gmail.com] Sent: Sat 19/05/2012 9.22 To: David Costantini Cc: Helios de Rosario; r-help@r-project.org Subject: Re: [R] MANOVA with random factor On May 18, 2012, at 16:15 , David Costantini wrote

Re: [R] MANOVA with random factor

2012-05-18 Thread Helios de Rosario
I suppose you mean this: http://www.r-project.org/doc/Rnews/Rnews_2007-2.pdf Another approach, less general but in my opinion easier to use (and equivalent in many situations), is provided by Anova() in package car. See:

Re: [R] MANOVA with random factor

2012-05-18 Thread Helios de Rosario
Hi, after re-reading I think that I misunderstood your question. You don't provide many details, but I suppose that the brood effect is nested within the fixed effects, so you don't mean a multivariate approach for a split-plot or a repeated-measures design, but the analysis of a multivariate

Re: [R] MANOVA with random factor

2012-05-18 Thread David Costantini
http://www.ornisitalica.com http://www.birdcam.it From: Helios de Rosario [mailto:helios.derosa...@ibv.upv.es] Sent: Fri 18/05/2012 15.14 To: David Costantini; r-help@r-project.org Subject: Re: [R] MANOVA

[R] MANOVA with random factor

2012-05-17 Thread David Costantini
Dear All I would need to perform a MANOVA with both fixed (group, sex, group*sex) and random (brood) effects. I wonder if this is at all possible and if R does that. At the moment, I only know that I can run a classic MANOVA with R. Thank you David __

Re: [R] MANOVA and Extra Sums-of-Squares Tests

2012-03-14 Thread chris33
Hi John, Thanks again. That looks like an easy and convenient approach. Regards, Chris -- View this message in context: http://r.789695.n4.nabble.com/MANOVA-and-Extra-Sums-of-Squares-Tests-tp4470077p4472265.html Sent from the R help mailing list archive at Nabble.com.

[R] MANOVA and Extra Sums-of-Squares Tests

2012-03-13 Thread chris33
I would like to conduct an extra sum-of -squares test that compares a full MANOVA model (with all 1st order interactions) to a reduced model (no interactions) to determine if I can drop all interactions at the same time. This is analagous to an extra sum-of-squares F-test in ANOVA, but instead

Re: [R] MANOVA and Extra Sums-of-Squares Tests

2012-03-13 Thread John Fox
Dear chris33, You can use the anova() function to compare the two multivariate linear models. Alternatively, the Anova() function in the car package will compute type II or type III MANOVA tests, which aren't quite what you're asking about. I hope this helps, John

Re: [R] MANOVA and Extra Sums-of-Squares Tests

2012-03-13 Thread chris33
Hi John, Thanks for your response. The anova funtion will not work in my case, because I have multiple response variables. In other words, I would like to conduct an extra sums-of-squares and cross-products test between the following models: FULL.MODEL: (Y1, Y2, Y3, Y4, Y5) as a function of

Re: [R] MANOVA and Extra Sums-of-Squares Tests

2012-03-13 Thread John Fox
Dear chris33, Well, actually as I said, the anova() function *will* do what you want. You can fit multivariate linear models with lm(), mod.1 - lm(cbind(Y1, Y2, Y3, Y4, Y5) ~ X1*X2 +X1*X3 + X1*X4) mod.2 - lm(cbind(Y1, Y2, Y3, Y4, Y5) ~ X1 + X2 + X3 + X4) and then use anova() to get

[R] manova/tukey test

2011-10-23 Thread Molly MacLeod
Hello, I am trying to do a manova test in r, and have used the manova function to test differences between two dependent variables. The results were significant for the whole model, but the sources I've read say that in order to do a post-hoc multiple comparison, I have to do separate aovs for

[R] MANOVA Post Hoc Testing Tukeys

2011-05-16 Thread wwreith
I used manova() with one predictor variable and four factor levels call them A, B, C, and D. There are 12 response variables. I now want to perform pairwise comparisons for A-B, A-C, etc. for all 12 response variables. If I were doing an ANOVA test I would run TukeyHSD() and be done. However

Re: [R] manova question

2011-03-23 Thread Ranjan Maitra
' Subject: Re: [R] manova question Dear John, Peter and others, So, I now have a query at an even more elementary level and that is regarding my results from anova.mlm() not matching the car package's Manova(). Specifically, I have been trying the following out with regard to a simple one

Re: [R] manova question

2011-03-22 Thread Ranjan Maitra
dalgaard Sent: March-20-11 6:50 PM To: Ranjan Maitra Cc: R-help Subject: Re: [R] manova question On Mar 20, 2011, at 21:05 , Ranjan Maitra wrote: Dear friends, Sorry for this somewhat generically titled posting but I had a question with using contrasts in a manova

Re: [R] manova question

2011-03-22 Thread John Fox
-project.org] On Behalf Of Ranjan Maitra Sent: March-22-11 8:36 PM To: 'R-help' Subject: Re: [R] manova question Dear John, Peter and others, So, I now have a query at an even more elementary level and that is regarding my results from anova.mlm() not matching the car package's Manova

[R] manova question

2011-03-20 Thread Ranjan Maitra
Dear friends, Sorry for this somewhat generically titled posting but I had a question with using contrasts in a manova context. So here is my question: Suppose I am interested in doing inference on \beta in the case of the model given by: Y = X %*% \beta + e where Y is a n x p matrix of

Re: [R] manova question

2011-03-20 Thread peter dalgaard
On Mar 20, 2011, at 21:05 , Ranjan Maitra wrote: Dear friends, Sorry for this somewhat generically titled posting but I had a question with using contrasts in a manova context. So here is my question: Suppose I am interested in doing inference on \beta in the case of the model given by:

Re: [R] manova question

2011-03-20 Thread John Fox
McMaster University Hamilton, Ontario, Canada http://socserv.mcmaster.ca/jfox -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of peter dalgaard Sent: March-20-11 6:50 PM To: Ranjan Maitra Cc: R-help Subject: Re: [R] manova

[R] MANOVA Type III SS

2010-12-02 Thread Ali S
How do I get MANOVA results with Type III sums of squares? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] MANOVA Type III SS

2010-12-02 Thread David Winsemius
On Dec 2, 2010, at 4:18 PM, Ali S wrote: How do I get MANOVA results with Type III sums of squares? First pull on your asbestos underwear, then visit :

Re: [R] MANOVA proportion of variance explained

2010-06-21 Thread Michael Friendly
Sam Brown wrote: Hi Michael Thank you very much for the intel regarding eta^2. It is pretty much the sort of thing that I am wanting. The latest developer version of the heplots package on R-Forge now includes an initial implementation of etasq() for multivariate linear models. Note that

Re: [R] MANOVA proportion of variance explained

2010-06-20 Thread Sam Brown
Hi Michael Thank you very much for the intel regarding eta^2. It is pretty much the sort of thing that I am wanting. Found a good paper regarding all this: Estimating an Effect Size in One-Way Multivariate Analysis of Variance (MANOVA) H. S. Steyn Jr; S. M. Ellisa Multivariate Behavioral

Re: [R] MANOVA proportion of variance explained

2010-06-16 Thread Michael Friendly
I think you are looking for a multivariate measure of association, analogous to R^2 for a univariate linear model. If so, there are extensions of eta^2 from univariate ANOVAs for each of the multivariate test statistics, e.g., for Pillai (-Bartlett) trace and Hotelling-Lawley trace and a given

[R] MANOVA proportion of variance explained

2010-06-15 Thread Sam Brown
Hello everybody After doing a MANOVA on a bunch of data, I want to be able to make some comment on the amount of variation in the data that is explained by the factor of interest. I want to say this in the following way: XX% of the data is explained by A. I can acheive something like

[R] R: MANOVA help

2010-02-26 Thread shmy
variables that I generated with the rmnorm() method, the only difference between them is that I used different means. Any ideas? Thank you for your time :-D -- View this message in context: http://n4.nabble.com/R-MANOVA-help-tp1570300p1570300.html Sent from the R help mailing list archive at Nabble.com

[R] Manova post hoc

2009-08-04 Thread Michelangelo La Spina
Hello, mailing list! I'm using a manova in R to study the responses of four dependent variables. I would like to do a post hoc analysis, but I don`t know which is the best and how to introduce in R. I'm using a pairwise t test, but I'm not sure if it is correct, I like to use tukeyHSD, but

[R] MANOVA

2009-05-16 Thread Davide Floriello
Dear Sir, I am Davide Floriello and I am a student in mathematics. I have got a problem with the MANOVA commands. I write here what I have done: PV - read.table('PV.txt') PV - data.frame(PV) g - 12 p - 2 REL - factor(PV$REL) HPV - factor(PV$HPV) fit - manova(as.matrix(PV) ~ REL + HPV +

Re: [R] MANOVA

2009-05-16 Thread John Fox
Dear Davide, -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Davide Floriello Sent: May-16-09 8:51 AM To: r-help@r-project.org Subject: [R] MANOVA Dear Sir, I am Davide Floriello and I am a student in mathematics. I have

[R] MANOVA

2009-03-12 Thread Ding Xiao
Hi All, I have questions about MANOVA which I am still not sure if appropriately I should use it. For example I have a data set like this: BloodPressure (BP) Weight Height 120115165 125145198 15699 176 I know that BloodPressure is correlated with both

Re: [R] MANOVA

2009-03-12 Thread Simon Blomberg
You only have one response variable, so MANOVA is not appropriate. One option would be to compare BP ~ Weight + Height with BP ~ 1. That would give you a joint test of weight and height together. Since they are collinear, that should tell you the overall effect of size. There are other options,

Re: [R] MANOVA

2009-03-12 Thread David Winsemius
Another method would be to use a summary that incorporates both as a measure of obesity, In medical investigations it is common to use the BMI which is the ratio of (weight in Kg) to (height in meters squared). Yet a third method would be to investigate for nonlinearity on the response

Re: [R] MANOVA

2009-03-12 Thread Jen_mp3
No, MANOVA is for Multivariate analysis of variance which is used if there are multiple responses as well as variables but you just have one response which is blood pressure. You should just have model - lm(BP ~Weight+Height) anova(model) If Weight is related to Height only one should be

Re: [R] manova: R vs SAS...need some clarification

2008-08-13 Thread Prof Brian Ripley
Please see the footer of this message: we need to know what you did. Also, SAS may have made some assumptions for you without telling you (for example used a numerically ill-conditioned covariance matrix), and we don't know what you did in SAS, either. On Tue, 12 Aug 2008, Pedro Mardones

[R] manova: R vs SAS...need some clarification

2008-08-12 Thread Pedro Mardones
Dear all; working with a 'fat' data set (700 variables / 50 samples) and trying to run a manova test on it (I'm aware that it's not the best option for this kind of data set) I got the error in the summary.manova function about the rank of the residuals (rank # variables). Ok. The thing that I

[R] MANOVA, SCC and multiple comparisons

2008-03-31 Thread Frédéric Chiroleu
Bonjour, we wanted to fit a manova as descripted in Marieta /et al./ 2003, convergent habitat segregation of /Aedes aegyptii/ and /Aedes albopictus/ (Diptera: /Culicidae/) in Southern Brazil and Florida, /J. Med. Entomol./, *40* (6), 785-794. They did their analysis with SAS software. We have

[R] manova with non-normal error distribution

2008-03-13 Thread Jarrett Byrnes
This may be a silly question to ask, but, is it possible do do a MANOVA-style analysis with a generalized linear model? I have a data set that I'm working with that, for each variable (time in this case, as it's a repeated measures MANOVA) is fit much better using glm rather than a