Re: [R] create loops in the explanatory variables using lm

2011-09-29 Thread Petr PIKAL
Hi David > > Hey Petr > > thanks for the answer > > I guess I was a bit unclear about the nature of my data > > the species terms are columns in the data frame, and they are coded 0/1, > depending whether the species is present in a plot or not. > > > No I want to repeatedly fit the linea

Re: [R] create loops in the explanatory variables using lm

2011-09-29 Thread David Emmerth
Hey Petr thanks for the answer I guess I was a bit unclear about the nature of my data the species terms are columns in the data frame, and they are coded 0/1, depending whether the species is present in a plot or not. No I want to repeatedly fit the linear model with all the species presenc

[R] create loops in the explanatory variables using lm

2011-09-29 Thread David Emmerth
Hi everyone I am new to the list and read all the instructions, hope i get it right. I have the following linear model: model_sqrt<-lm(sqrt(mortality)~richness +Acer_davidii+Ailanthus_altissima+Alniphyllum_fortunei +Betula_luminifera+Castanea_henryi+Castanopsis_car