I have a data frame containing an "independent variable" and a series of potential "dependent variables". I'd like to find the "dependent variable" with the strongest association to my "independent variable".
I've carried out a MANOVA in R as follows:
mydata<-iris #produce a data frame
#containing my dependent variables
anovatest<-manova(cbind(Sepal.Length, Sepal.Width,Petal.Length,Petal.Width)~as.factor(Species),data=mydata)
I can access the results of this using the following:
summary.aov(anovatest)
I want to prduce a dataframe where i need only the variables with Pr(>F) <0.05