[R] Problem of Running Simulations for Monte Carlo Spatial Segregation Test using Spatialkernel Package
Wei Zhang
wuz108 at stat.psu.edu
Sat Dec 9 02:58:13 CET 2006
Hello,
When I used "spseg" function in the spatialkernel package to run Monte
Carlo spatial segregation test, R would not let me run more than 50
simulations. That is, I tried to run the following code,
sp <- spseg(pts, bin, hcv, opt=3, ntest=1000, poly=polyb)
where pts was a 116*2 matrix containing lat/long; bin was a vector
containing categorical types with length of 116; hcv was the selected
bandwidth; polyb was a 4*2 matrix which would form a rectangle. But R
immediately gave an error message "cannot locate vector of size". I used
gc() but it would not help. I could only make it work when ntest=50 or
less.
Any suggestion is appreciated.
Wei Zhang
More information about the R-help
mailing list