s-news
[Top] [All Lists]

[S] remove intercept term using gam()

To: s-news@wubios.wustl.edu
Subject: [S] remove intercept term using gam()
From: Matthias Richard <richard@Psyres-Stuttgart.DE>
Date: Thu, 15 Jul 1999 13:18:11 +0200 (MET DST)
Reply-to: Matthias Richard <richard@Psyres-Stuttgart.DE>
Sender: owner-s-news@wubios.wustl.edu


Hello everybody!

I would like to fit a gam()-model WITHOUT the intercept term. I tried to
do it with -1 at the end of the formular, but it does not work.
e.g.
object1<-gam(EVENT ~ 
SP1INT + s(SP1MON) + 
SP2INT + s(SP2MON) + 
SP3INT + s(SP3MON) -1,
family=binomial, data=multspel)

this is a multiple spell discrete time survival analysis and I am trying
to fit a different smoothed hazard function to each spell. So each spell
has it's own intercept - but I cannot remove the overall intercept term!

Fitting a model with and without (like above) intercept yields exactly the
same results!!

Do I do something wrong here? Is there a way to remove the intercept from
gam()-models?

any comment is appreciated!

thanks a lot, 


----------------------------------------
Matthias Richard (doctoral candidate)

Center for Research on Psychotherapy
Christian-Belser-Str. 79a
70593 Suttgart
Germany
email: richard@psyres-stuttgart.de
telephone: ++49-711-6781-408
http://www.psyres-stuttgart.de

COST Action B6:
'Efficient Psychotherapy of Eating Disorders'
(COoperation of Science and Technology in the European Union)
-----------------------------------------


-----------------------------------------------------------------------
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] remove intercept term using gam(), Matthias Richard <=