[R] Too large?
Kenneth Cabrera
krcabrer at perseus.unalmed.edu.co
Thu May 23 22:09:23 CEST 2002
Hi R Experts:
I'm trying to run a "lm" model with a dataframe of 20607 records (and 23
variables, many of them factors) . (See at the end of the meesage)
but I obtain the following message:
Error: cannot allocate vector of size 522580 Kb
I use the --max-mem-size 1790Mb option (because if I use a bigger number
(1800Mb) it shows me a window with "Cannot reserve memory:terminating"
message)
When I use memory.limit(size=NA) I obtain
[1] 1876951040
I try to reserve bigger memory with memory.limit(size=2500000000)
But I obtain the following message when I call again memory.limit(size=NA)
[1] -1879048192
And the memory problem persist when I try to run the "lm" function.
I have a PIII computer with 128MB of RAM and 17Gb free on hard disk in
W2K platform.
Thank you for your help!!!
$platform "i386-pc-mingw32"
$arch "i386"
$os "mingw32"
$system "i386, mingw32"
$status ""
$major "1"
$minor "5.0"
$year "2002"
$month "04"
$day "29"
$language "R"
the call function is:
lm(iscDIC.01~SALDOREAL+VALOAPRO+NUEVSALARI+ANTIG+ENDEUDA+
factor(FORMPAGO)+factor(FORMPAGO):SALDOREAL+factor(FORMPAGO):VALOAPRO+factor(FORMPAGO):NUEVSALARI+factor(FORMPAGO):ANTIG+factor(FORMPAGO):ENDEUDA+
factor(SUC)+factor(SUC):SALDOREAL+factor(SUC):VALOAPRO+factor(SUC):NUEVSALARI+factor(SUC):ANTIG+factor(SUC):ENDEUDA+
factor(PERIPAGO)+factor(PERIPAGO):SALDOREAL+factor(PERIPAGO):VALOAPRO+factor(PERIPAGO):NUEVSALARI+factor(PERIPAGO):ANTIG+factor(PERIPAGO):ENDEUDA+
factor(ESTCIVIL)+factor(ESTCIVIL):SALDOREAL+factor(ESTCIVIL):VALOAPRO+factor(ESTCIVIL):NUEVSALARI+factor(ESTCIVIL):ANTIG+factor(ESTCIVIL):ENDEUDA+
factor(CONTRATO)+factor(CONTRATO):SALDOREAL+factor(CONTRATO):VALOAPRO+factor(CONTRATO):NUEVSALARI+factor(CONTRATO):ANTIG+factor(CONTRATO):ENDEUDA+
factor(TIPOGARA)+factor(TIPOGARA):SALDOREAL+factor(TIPOGARA):VALOAPRO+factor(TIPOGARA):NUEVSALARI+factor(TIPOGARA):ANTIG+factor(TIPOGARA):ENDEUDA+
factor(CIA)+factor(CIA):SALDOREAL+factor(CIA):VALOAPRO+factor(CIA):NUEVSALARI+factor(CIA):ANTIG+factor(CIA):ENDEUDA+
factor(CIIU)+factor(CIIU):SALDOREAL+factor(CIIU):VALOAPRO+factor(CIIU):NUEVSALARI+factor(CIIU):ANTIG+factor(CIIU):ENDEUDA+
factor(TIPOOCU)+factor(TIPOOCU):SALDOREAL+factor(TIPOOCU):VALOAPRO+factor(TIPOOCU):NUEVSALARI+factor(TIPOOCU):ANTIG+factor(TIPOOCU):ENDEUDA+
factor(SEXO)+factor(SEXO):SALDOREAL+factor(SEXO):VALOAPRO+factor(SEXO):NUEVSALARI+factor(SEXO):ANTIG+factor(SEXO):ENDEUDA)->mod1
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list