Skip to content
Back to formatted view

Raw Message

Message-ID: <1046.128.118.87.215.1165629493.squirrel@imap.stat.psu.edu>
Date: 2006-12-09T01:58:13Z
From: Wei Zhang
Subject: Problem of Running Simulations for Monte Carlo Spatial Segregation Test using Spatialkernel Package

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