[R] size of a glm-like object

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Tue Nov 26 12:14:54 CET 2002

> some (two or three) additional variables in the linear predictor.

That changes the sizes of the components of the glm fit, and some vary
with the square of the number of columns in the model matrix.  You are not
comparing like with like.

On Tue, 26 Nov 2002, vito muggeo wrote:

> I'm writing a package where the main function fn(), say, returns a glm-like
> object, with three additional components.
> > obj<-glm(....)
> > out<-fn(obj,....)
> out is substantially an updated version of obj, with the same response and
> some (two or three) additional variables in the linear predictor.
> My problem is that out is much bigger than obj, and the three additional
> components don't seem responsible, as they are quite small.

Why is this a problem?


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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list