[R] Strange predicted values ?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Aug 7 12:31:18 CEST 2003
On Thu, 7 Aug 2003, orkun wrote:
[quoting me without attribution]
> >Those are not predicted values, they are fitted values. Try predicting on
> >the same set of variables as you printed.
Precisely! From ?predict.glm
newdata: optionally, a new data frame from which to make the
predictions. If omitted, the fitted linear predictors are
used.
[...]
> If predict(glm.obj,type="resp") does not give predicted vals, How can I
> get predicted values ?
Try reading the help page? It is quite explicit, and has examples, as do
all good books on S/R.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list