Re: [R-sig-eco] Compute the distance between the trajectories of two animals with varying sampling intervals

2015-07-22 Thread Li Wen
You may have to make the two trajectories regular with the same interval. Package adehabitatLT has functions to do this. Cheers Li From: R-sig-ecology [r-sig-ecology-boun...@r-project.org] on behalf of Sarah Goslee [sarah.gos...@gmail.com] Sent: Thursday

Re: [R-sig-eco] Query related to maxent file in dismo package

2014-09-08 Thread Li Wen
HI, Raj Firstly make sure you copy and pasted maxent.jar to the folder ...\R-x.x.x\library\dismo\java, the "R-x.x.x" is your R fold. Secondly, make sure you have administrative right to your PC. Good luck Li -Original Message- From: r-sig-ecology-boun...@r-project.org [mailto:r-sig-ec

Re: [R-sig-eco] Query related to maxent file in dismo package

2014-08-19 Thread Li Wen
HI, Raj 1100 points is not huge. Anyway, there are a number of ways to extract values from raster layers. 1. Suppose you sample points are an excel datasheet of X (longitude) and Y (latitude). Saving it as .csv file, then read it into R as spatial data: Samples<-SpatialPoints(read.csv("y

Re: [R-sig-eco] Query related to maxent file in dismo package

2014-08-18 Thread Li Wen
Hi, Raj After installing the dismo package from R (menu -> packages->install package(s) from local zip files), paste the file 'maxent.jar' in R -> library -> dicmo ->java. Cheers Li -Original Message- From: r-sig-ecology-boun...@r-project.org [mailto:r-sig-ecology-boun...@r-project

Re: [R-sig-eco] report out by t.test

2014-03-24 Thread Li Wen
HI, Jari The default in the Welch t test (an adaptive student's t test) doesn't assume equal variance; but student's t-test do assume normal distribution. Cheers Li -Original Message- From: r-sig-ecology-boun...@r-project.org [mailto:r-sig-ecology-boun...@r-project.org] On Behalf Of Ja

Re: [R-sig-eco] Projecting model to landscape

2013-03-06 Thread Li Wen
es with the 'dismo' package: http://cran.r-project.org/web/packages/dismo/vignettes/sdm.pdf Robert > Li Wen-2 wrote > > Dear list member > > > > > > > > I have fitted a Random Forest model for species distribution, and want to > > u

Re: [R-sig-eco] Projecting model to landscape

2013-03-05 Thread Li Wen
Thanks, Doug It seems that Biomod is the one I am after. Thanks again. Li -Original Message- From: r-sig-ecology-boun...@r-project.org [mailto:r-sig-ecology-boun...@r-project.org] On Behalf Of doug.leasure Sent: Wednesday, 6 March 2013 9:30 AM To: r-sig-ecology@r-project.org Subject: Re

Re: [R-sig-eco] Projecting model to landscape

2013-03-05 Thread Li Wen
the moment. Cheers, Li -Original Message- From: r-sig-ecology-boun...@r-project.org [mailto:r-sig-ecology-boun...@r-project.org] On Behalf Of Nicole K.S. Barker Sent: Wednesday, 6 March 2013 5:00 AM To: Li Wen Cc: r-sig-ecology@r-project.org Subject: Re: [R-sig-eco] Projecting model to lan

[R-sig-eco] Projecting model to landscape

2013-03-05 Thread Li Wen
Dear list member I have fitted a Random Forest model for species distribution, and want to use it to project the model to a defined landscape (i.e. forecasting for all grids in an area) . The landscape has all the environment covariates (rasters) and cover a large region (over 1000*1000 grids).

Re: [R-sig-eco] Log transformed simple linear regression and Poisson regression

2012-08-01 Thread Li Wen
HI, Lin You might "normalize" your predictors before the GLM, this allow you to directly compare the contributions by looking at the fitted coefficients, as all your Xs have 0 mean and 1 standard deviation. Li -Original Message- From: r-sig-ecology-boun...@r-project.org [mailto:r-si

Re: [R-sig-eco] bootstrapping and 2-dimensional smoothers in GAMs

2010-12-28 Thread Li Wen
Hi, Saskia, Have a look at the package gamlss by Mikis Stasinopoulos and Bob Rigby. They also have a comprehensive textbook (plus lots of examples) which you can download from http://www.gamlss.org/. Cheers, Li -Original Message- From: r-sig-ecology-boun...@r-project.org [mailto:r-sig

[R-sig-eco] negative AIC and BIC

2010-11-29 Thread Li Wen
Dear List members, I am trying to fit mixed models with lmer4. Sometimes I got negative AIC. Is this normal? If so, when comparing models, should I use the absolute value of AIC or just the smallest AIC? Thanks, Li ---