Dear sirs, I'm using the Splancs package to compute standard errors of the estimates of a spatio-temporal k function. When I use as spatial and temporal distances too long vectors (respectively 60 and 80 entries) for a dataset of 1000 observations, R gives me the message Error: cannot allocate vector of size 180000 Kb Reached total allocation of 512 Mb. I ran the function memory.size() and obtained 392000000 more or less. Can anyone help me? Thanks in advance. Massimiliano Copetti -- Massimiliano Copetti, PhD Student Institute of Quantitative Methods L.Bocconi University Viale Isonzo 25 20135 Milano (Italy) http://www.unibocconi.it http://spazioinwind.libero.it/maxcop78
Dear colegues, Is there any function in R for calculating the four coefficients of each harmonic in fourier analysis, from a set of x,y coordinates is given? Is it possible to do Fourier analysis? Has anyone done contour analysis using R? Any help wil be apretiated, Thank you very much, All the best, Marta
There is more to that message you have not reproduced. I am pretty sure you are on Windows, and you need to read the rw-FAQ (as the posting guide asks you too). See Q2.7. On Tue, 16 Nov 2004, Massimiliano Copetti wrote:> I'm using the Splancs package to compute standard errors of the > estimates of a spatio-temporal k function. When I use as spatial and > temporal distances too long vectors (respectively 60 and 80 entries) for > a dataset of 1000 observations, R gives me the message > > Error: cannot allocate vector of size 180000 Kb > > Reached total allocation of 512 Mb. > > I ran the function memory.size() and obtained 392000000 more or less.Yes, but see its help page for the relevant usage. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On Tue, 16 Nov 2004, Massimiliano Copetti wrote:> > Dear sirs, > > I'm using the Splancs package to compute standard errors of the > estimates of a spatio-temporal k function. When I use as spatial and > temporal distances too long vectors (respectively 60 and 80 entries) for > a dataset of 1000 observations, R gives me the messageThe memory demands arise in stvmat() called inside stsecal(), in which an (s*tm)*(s*tm) numeric matrix is allocated, described in the code as a "full spacetime variance/covariance matrix", and which is necessarily large. In your case 23040000 elements are used of 8 bytes each, so to do this in the way you describe you need more RAM - the matrix may be copied as well. The authors of the package and the underlying method did not anticipate needing this high degree of spatial and temporal resolution. Roger Bivand> > Error: cannot allocate vector of size 180000 Kb > > Reached total allocation of 512 Mb. > > I ran the function memory.size() and obtained 392000000 more or less. > > Can anyone help me? > > Thanks in advance. > > Massimiliano Copetti > > > >-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no