MorphoFun / psa

Welcome to an introduction to conducting phenotypic selection analyses.
2 stars 1 forks source link

Fix nonlinear estimates for JS option of glam #7

Open MorphoFun opened 8 years ago

MorphoFun commented 8 years ago

estimates from nonlinear terms for JS do not match OLS

MorphoFun commented 8 years ago

estimates for the nonlinear terms improve a little bit if I change the correction to mean(phat(1-phat)^2); need to confirm whether this is a good modification

MorphoFun commented 8 years ago

The methodology for the Janzen and Stern (1998) approach was originally intended for only estimating linear selection gradients. It does not seem to apply to nonlinear selection gradients, so it might be best to create a separate function to conduct the Janzen and Stern (1998) approach for linear selection gradients only.