search for: lmsp1

Displaying 1 result from an estimated 1 matches for "lmsp1".

2011 May 23
2
Linear regression - several response variables vs few ind variables
Hi all, I need to run several simple linear regressions at once, using the following data. Response variables: Bird species (sp 1, sp2, sp3...spn). Independent variable: Natprop - proportion of natural area. covarate: Effort = hours). One single linear regression would be: lmSp1 <- lm(sp1~ natprop + effort). However, I need to run this linear regression for all bird species that I have individually (n = 163). I would like to do it at once and store the coefficients in a single data frame. Is that possible? Table that I have: Square Sp1 Sp2 Sp3 Sp4 Spn Natprop Effo...