Re: [R] Help on how to use predict

2011-08-15 Thread Eduardo M. A. M.Mendes
: 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 >

Re: [R] Help on how to use predict

2011-08-15 Thread Duncan Murdoch
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

Re: [R] Help on how to use predict

2011-08-15 Thread David Winsemius
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. -- David. On Aug 15, 2011, at 5

[R] Help on how to use predict

2011-08-15 Thread Eduardo M. A. M.Mendes
Dear R-Users My problem is quite simple: I need to use a fitted model to predict the next point (that is, just one single point in a curve). The data was divided in two parts: identification (x and y - class matrix) and validation (xt and yt - class matrix). I don't use all values in x a