s-news
[Top] [All Lists]

[S] Ajusting coefficients of a glm.

To: s-news@wubios.wustl.edu
Subject: [S] Ajusting coefficients of a glm.
From: "Gérald Jean" <Gerald.Jean@spgdag.ca>
Date: Tue, 29 Feb 2000 09:37:57 -0500
Sender: owner-s-news@wubios.wustl.edu
Dear S-users,

for non-statistical reasons I would like to adjust, before using predict, some
coefficients of a glm.  For the sake of argument suppose I only want to adjust
the constant as follows.

> ttt_aut4.freq.glm.final
> ttt$coef[1]_ aut4.freq.glm.final$coef[1] + log(0.96)
> ttt$coef[1]
 (Intercept)
   -5.385395
> coef(ttt)[1]
 (Intercept)
   -5.344573

What is going on?  The correct answer is -5.385395, see the original
constant below.

> aut4.freq.glm.final$coef[1]
 (Intercept)
   -5.344573
> coef(aut4.freq.glm.final)[1]
 (Intercept)
   -5.344573

When I call predict passing ttt as the model and using the newdata argument
which version of the constant will be used?

Thanks for your help,

Gérald Jean
Analyste-conseil (statistiques), Actuariat
télephone            : (418) 835-8839
télecopieur          : (418) 835-5865
courrier électronique: gerald.jean@spgdag.ca

"In God we trust all others must bring data"


-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Ajusting coefficients of a glm., "Gérald Jean" <=