Hi, Robert and all others


Thanks for the suggestions and directions pointed out from the community. It 
seems there are two packages for the work:

1. Using predict function from package "raster". The function can project a 
fitted model of any class that has a 'predict' method (or supplying a similar 
method as fun argument. E.g. glm, gam, or randomForest) to a raster object. 
Examples can be found in package "dismo"; and

2. Using package "Biomod", which can build, evaluate and forecast up to 8 
models (e.g. Maxent, MARS, RF, etc.). However, Biomod can only handle 
presence/absence data (i.e. probability or abundant data need to transform to 
0/1).



Thanks again for the help.



Li



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert J. Hijmans
Sent: Thursday, 7 March 2013 10:35 AM
To: [email protected]
Subject: Re: [R-sig-eco] Projecting model to landscape



Li,



You can use the "predict" function in the 'raster' package. There are also

examples with randomForest and other techniques in this vignette that comes

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

> > 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). I wonder if

> > there

> > is package in R to do this. Thank you for your help in advance.

> >

> >

> >

> > Cheers

> >

> > Li

> >

>



      [[alternative HTML version deleted]]



_______________________________________________

R-sig-ecology mailing list

[email protected]

https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is intended for the addressee(s) named and may contain confidential 
and/or privileged information. 
If you are not the intended recipient, please notify the sender and then delete 
it immediately.
Any views expressed in this email are those of the individual sender except 
where the sender expressly and with authority states them to be the views of 
the Office of Environment and Heritage, NSW Department of Premier and Cabinet.

PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-ecology mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

Reply via email to