I tried the following but I still can't get to increase the memory.

I'm working on 64-bit windows machine with 16 GB RAM. However I can't get to
use the RAM properly.

> test<-errorsarlm(SALE_VALUE~., data=modnetwork, adrweights,
zero.policy=TRUE)
Error: cannot allocate vector of size 2.1 Gb
> help(memory.size)
> memory.size(max = FALSE)
[1] 168.1048
> memory.size(max = TRUE)
[1] 204.4375
> memory.limit(size = NA)
[1] 3583.875
> memory.limit(size = 4095.00)
NULL

How can I increase the memory size in R to utilize the 16 GB RAM.

Thanks for all your help.

Debs.


On Jan 11, 2008 2:05 AM, Roger Bivand <Roger.Bivand@nhh.no> wrote:

> On Thu, 10 Jan 2008, Debarchana Ghosh wrote:
>
> > Hi,
> >
> > I'm trying to run a spatial error model using the spdep package. I'm
> working
> > on a windows machine with 2GB ram.
> >
> > baseshpPIN<-readShapePoly("tricounty_2005.shp", IDvar="PIN",
> verbose=TRUE)
> >
> > ## The shape has lots of discontinuous polygons
> >
> > basenb<-poly2nb(baseshpPIN, row.names=PIN)
> >
> > adrweights<-nb2listw(basenb, style="W", zero.policy=TRUE)
> >
> > modnetwork.errormod<-errorsarlm(SALE_VALUE~., data=modnetwork,
> adrweights)
> > Error in errorsarlm(SALE_VALUE ~ ., data = modnetwork, adrweights) :
> >        NAs in lagged dependent variable
> > In addition: Warning message:
> > NAs in lagged values in: lag.listw(listw, y, zero.policy = zero.policy)
> >
> > When I tried to Moran's I test, it gave similar errors. How can I solve
> this
> > problem? Is there any wrong with the listw object (adrweights)?
>
> Add the zero.policy=TRUE argument to each subsequent command too.
>
> This is in ?errorsarlm:
>
> "zero.policy: if TRUE assign zero to the lagged value of zones without
>           neighbours, if FALSE (default) assign NA - causing
>           'errorsarlm()' to terminate with an error"
>
> Roger
>
> >
> > I'll appreciate any help.
> >
> > Thanks,
> > Debs.
> >
> >
> >
> >
>
> --
> Roger Bivand
> Economic Geography Section, Department of Economics, Norwegian School of
> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
> e-mail: Roger.Bivand@nhh.no
>
>


-- 
Debarchana Ghosh
PHD Candidate | Research Assistant
Department of Geography
University of Minnesota.
PH: 8143607580
www.tc.umn.edu/~ghos0033/

	[[alternative HTML version deleted]]


