Re: [R] Odd Results when generating predictions with nnet function

2020-09-01 Thread peter dalgaard
Generically, nnet(a$y ~ a$x, a ...) should be nnet(y ~ x, data=a, ...) otherwise predict will go looking for a$x, no matter what is in xnew. But more importantly, nnet() is a _classifier_, so the LHS should be a class, not a numeric variable. -pd > On 1 Sep 2020, at 22:19 , Paul Bernal wrote

[R] Why does a 2 GB RData file exceed my 16GB memory limit when reading it in?

2020-09-01 Thread David Jones
I ran a number of analyses in R and saved the workspace, which resulted in a 2GB .RData file. When I try to read the file back into R later, it won't read into R and provides the error: "Error: cannot allocate vector of size 37 Kb" This error comes after 1 minute of trying to read things in - I pr

[R] Odd Results when generating predictions with nnet function

2020-09-01 Thread Paul Bernal
Dear friends, Hope you are all doing well. I am currently using R version 4.0.2 and working with the nnet package. My dataframe consists of three columns, FECHA which is the date, x, which is a sequence from 1 to 159, and y, which is the number of covid cases (I am also providing the dput for thi

Re: [R] System Requirements

2020-09-01 Thread Firpo, Mike via R-help
Patrick, Rui, Murdoch, and Rasmus, Thank you for your responses. It may not be fair of me to send out that request just before leaving on vacation for a week. I appreciate you getting back to me. All the best, Mike -Original Message- From: Rasmus Liland Sent: Saturday, August 22