Hello, Is it possible to add a new individual in an existing dataset in order to make a prediction? Afrae Hassouni
Hello, Yes it is. Hope this helps, Rui Barradas P.S. You must be much more specific in your question. 1. Provide a data example using ?dput. dput( head(MyData, 50) ) # paste the output of this in a post. 2. What type of model are you talking about? What exactly does "prediction" mean? 3. At the bottom of every mail there's a message: PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. R.B. Em 18-10-2012 04:52, Afrae Hassouni escreveu:> Hello, > Is it possible to add a new individual in an existing dataset in order to make a prediction? > > > > Afrae Hassouni > > ______________________________________________ > R-help at 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.
As Rui said, this is a pretty vague question... Nonetheless, if you are using lm() for example you should use the newdata argument in predict(). Have a look at ?predict.lm for example.> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Afrae Hassouni > Sent: Thursday 18 October 2012 5:52 > To: r-help at r-project.org > Subject: [R] adding a new individual > > Hello, > Is it possible to add a new individual in an existing dataset in order > to make a prediction? > > > > Afrae Hassouni > > ______________________________________________ > R-help at 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.