Re: [R] FW: multivariate regression

2011-02-07 Thread Deniz SIGIRLI
The test is manova. I tried to use manova() function, I used the code below:fit <- manova(Y ~ X)summary(fit, test="Wilks")but I get p values for intercept and regression coefficient as in anova() function, not for the hull model. Date: Mon, 7 Feb 2011 00:57:43 -0800 Subjec

Re: [R] FW: multivariate regression

2011-02-07 Thread Mark Difford
Deniz, >> There are 3 F statistics, R2 and p-values. But I want just one R2 and >> pvalue for my multivariate >> regression model. Which is as it should. Maybe the following will help, but we are making the dependent variables the independent variables, which may or may not be what you really

Re: [R] FW: multivariate regression

2011-02-07 Thread Dennis Murphy
Hi: You don't state the test for which you want the p-value, and to reiterate what Dr. Ligges asked in response to your earlier post, how do you propose to define a single R^2 measure? One may be able to answer your question re an overall significance test using the anova() function: > Y<-matrix(

[R] FW: multivariate regression

2011-02-06 Thread Deniz SIGIRLI
#I have got 3 dependent variables: Y<-matrix(c(3,5,6,3,4,2,4,5,3,2,3,5,6,3,4,2,4,5,3,2,3,5,6,3,4,2,4,5,3,2), nrow = 10, ncol=3, byrow=TRUE) #I've got one independent variable: X<-matrix(c(42,54,67,76,45,76,54,87,34,65), nrow = 10, ncol=1, byrow=TRUE) summary(lm(Y~X)) and the result is as bel