Hi Tal,
That is correct. In the code, I actually call the same exact data.frame that
was used to create the object. I understand I can call predict() without a
data.frame to get this result, but I would like to predict other datasets as
well.
Thanks,
Harold
On Dec 5, 2010, at 7:18 AM, Tal
nlap tibco.com
> -Original Message-----
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Harold Pimentel
> Sent: Friday, December 03, 2010 11:31 PM
> To: r-help@r-project.org
> Subject: [R] Problem storing lm() model in a list
>
>
Hi Harold,
I think the error stems from the data.frame you are entering into the
predict function.
Your data.frame must have the EXACT column name as the one used for the
creation of the model object.
Is that the case in your code?
Best,
Tal
Contact
Details:--
Hi all,
I recently wrote some code to store a number of polynomial models in a list and
return this list. The model is returned fine, but when I make a subsequent call
to predict(), I have an error. The code for polyModel selection is listed at
the end of the email. Here is an example of the er
4 matches
Mail list logo