Skip to content

size of a glm-like object

2 messages · vito muggeo, Brian Ripley

#
Dear all,
I'm writing a package where the main function fn(), say, returns a glm-like
object, with three additional components.
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.
[1] "glm" "lm"
[1] "myclass" "glm"       "lm"
[1] 1685228
[1] 2701292

Why is out so larger than obj? the additional components are rather small
and the remaining ones seem approximatevely the same.
Many thanks,
vito

#the size of the additional components:
[1] 348
[1] 36
[1] 36

#the size of some remaining component:
[1] TRUE
[1] 9284
[1] 10356
[1] 1024
[1] 1064
[1] 1456
[1] 764


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
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:

            
Why is this a problem?

[...]