[R-sig-eco] Unbalanced data and random effects

2013-10-16 Thread v_coudrain
Dear all, I performed a census of insects at different sites and measured there size. I would like to know if size is related to an environmental factor. I modelled the size as a fonction of the factor with site as a random variable to account for within-site variability. However I have

Re: [R-sig-eco] angular statistics

2013-10-16 Thread Rob Robinson
An alternative might be to consider cyclic splines in mgcv? this would enable you to fit a gam(m) with two 'ends' (1deg and 359 deg) that match up, but might allow more flexibility than combinations of sine/cosine? something along the lines of gam(response ~ s(exposure, bs='cc'), family=...) I've

Re: [R-sig-eco] angular statistics

2013-10-16 Thread Steve Brewer
Peter, For my purposes (I.e., estimating exposure and drying potential in northern hemisphere temperate forests), I simply subtract 45 degrees from the measured aspect in degrees, convert to radians, and then take the cosine of the adjusted angle. If I want to make exposure positive, I then

Re: [R-sig-eco] Unbalanced data and random effects

2013-10-16 Thread Chris Howden
Hi Krysztof, Did you have a specific section of Zuur et als book in mind? I've pulled it off my shelf and tried looking up shrinkage, unbalanced design, design, etc in the index but couldn't find anything relevant. I'm sure it's in there, but it’s a rather large book to read in 1 go!! Chris

[R-sig-eco] envfit() in vegan

2013-10-16 Thread Paolo Piras
Dear list, I write you because I do not understand the behavior of envfit() in vegan. Basically, it takes a matrix coming from an ordination procedure and it fits on it another matrix (often an environmental matrix). The projections of points onto vectors have maximum correlation with

Re: [R-sig-eco] Unbalanced data and random effects

2013-10-16 Thread Krzysztof Sakrejda
On Wed, Oct 16, 2013 at 6:20 PM, Chris Howden ch...@trickysolutions.com.au wrote: Hi Krysztof, Did you have a specific section of Zuur et als book in mind? I've pulled it off my shelf and tried looking up shrinkage, unbalanced design, design, etc in the index but couldn't find anything

Re: [R-sig-eco] Unbalanced data and random effects

2013-10-16 Thread Chris Howden
Thanks Krzysztof, Your explanation makes a lot of sense. Chris Howden B.Sc. (Hons) GStat. Founding Partner Evidence Based Strategic Development, IP Commercialisation and Innovation, Data Analysis, Modelling and Training (mobile) 0410 689 945 (skype) chris.howden ch...@trickysolutions.com.au