[18633] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] remove intercept term using gam()

daemon@ATHENA.MIT.EDU (Matthias Richard)
Thu Jul 15 07:32:42 1999

Date: Thu, 15 Jul 1999 13:18:11 +0200 (MET DST)
From: Matthias Richard <richard@Psyres-Stuttgart.DE>
Reply-To: Matthias Richard <richard@Psyres-Stuttgart.DE>
To: s-news@wubios.wustl.edu
Message-Id: <Pine.GSO.3.96.990715130531.7743A-100000@sunserv>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII




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

home help back first fref pref prev next nref lref last post