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.