[R] spatial simulation

From: Kitty Lee <lee.kitty_at_yahoo.com>
Date: Fri, 01 Jun 2007 18:06:48 -0700 (PDT)

Dear R-users,

I'm trying to do some spatial simulation. I have two covariates, Z and C. I want to examine their relationship under different spatial distribution.

I have no problem simulating completely spatial random process but I'm totally stuck on poisson (cluster) pattern. I already have a dataset with Z and C (obs=575) and I know the relationship between them. Using these 575 cases, how can I simulate a clustered process and have a dataset that has four columns:

x-coor y-coor z c

I know I can use rpois or pcp.sim to generate points that clustered and then use cbind to attach Z and C values. But the problem is my observations will not be spatially clustered. How can I simulate so that now Z is spatially clustered?



        [[alternative HTML version deleted]]

R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 02 Jun 2007 - 01:12:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 02 Jun 2007 - 15:01:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.