Hi there

Many thanks.   I will try to follow what you two said.  

Meanwhile I use the dirty solution that I have just come across.

Cheers

Ed


-----Original Message-----
From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] 
Sent: Monday, August 15, 2011 1:36 PM
To: David Winsemius
Cc: Eduardo M. A. M.Mendes; r-help@r-project.org
Subject: Re: [R] Help on how to use predict

On 11-08-15 12:21 PM, David Winsemius wrote:
> Eduardo;
>
> I think you would be more successful if you put your data in a 
> dataframe, offered it to lm with column names only in the formula, and 
> then used the newdata argument with predict with the column names 
> matching the column names in the original data.
>

I agree.  You can use the "subset" argument to lm to choose your local
window.

Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to