[R] Help on how to use predict

Duncan Murdoch murdoch.duncan at gmail.com
Mon Aug 15 18:35:34 CEST 2011


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



More information about the R-help mailing list