[R] Manova and specifying the model

Petr Pikal petr.pikal at precheza.cz
Thu Jun 10 12:17:56 CEST 2004


Hallo

On 23 May 2004 at 13:44, Stefanie von Felten wrote:

> Hi,
> 
> I would like to conduct a MANOVA. I know that there 's the manova()
> funciton and the summary.manova() function to get the appropriate
> summary of test statistics.
> 
> I just don't manage to specify my model in the manova() call. How to
> specify a model with multiple responses and one explanatory factor?
> 
> If I type:
> pcor.manova<-manova(isol+hcom+habarea+inclin+windprot+shrubcov+herbh+b
> aregr+flowcov~pcor, data=pcor.df)
> 
> I always get error messages like:
> Error in manova(isol + hcom + habarea + inclin + windprot + shrubcov +
>  : 
>         need multiple response

Well, I looked in the help page to manova and it transferred me to a 
summary.manova help page with example which seems to organize multiple 
respodse to a matrix. So I presume

Y<- cbind(isol,hcom,habarea,inclin,windprot,shrubcov,herbh,baregr,flowcov)

and

manova(Y~pcor, data=pcor.df)

should work as expected, hopefully.

Cheers
Petr

> 
> Can someone help me?
> 
> Thanks
> Steffi
> 
> 
> 
> ----------------------------------------
> Stefanie von Felten
> Käppelistrasse 24
> 4600 Olten
> Tel: 062/296 13 14
> e-mail: steffi.vf at bluewin.ch
>  [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list