[Basta-users] plotting survival curves manually using the posterior means
Fernando Colchero
colchero at imada.sdu.dk
Wed Feb 20 10:48:39 CET 2013
Hi Jelle,
I think I know what the problem was. The proportional hazards model would fix b0 and b1 and add an additional parameter for one of the two groups. So the equation becomes: mu(x | z) = exp(b0 + b1x + b2z), where z will assign 1 to group 1 and 0 otherwise. In this case, you can interpret b2 as a deviation from b0. Is that what you're trying to do? Now, the reason why the plots are different is a bit puzzling, unless we are missing something. We'll double check the plotting function to make sure that we haven't made a mistake there.
Best,
Fernando
Fernando Colchero
Assistant Professor
Department of Mathematics and Computer Sciences
Max Planck Odense Center on the Biodemography of Aging
Tlf. +45 65 50 46 35
Email colchero at imada.sdu.dk
Web www.sdu.dk/staff/colchero
Pers. web www.colchero.com
Adr. Campusvej 55, 5230, Odense, Dk
University of Southern Denmark
On Feb 20, 2013, at 10:36 AM, Jelle Boonekamp <jjboonekamp at gmail.com> wrote:
> Hi BaSTA users,
>
> I ran into something peculiar. When I manually plot the survivor function (2par Gompertz in my case) using the posterior mean parameter estimations, I get a slightly different survival curve/shape compared with the curve that BaSTA draws. Shouldn't these be exactly similar, or am I missing something? For the plotting I used the equation from table 3 on p16 of the cran manual, with proportional hazard implementation following equation 7b on page 19. The aim of this exercise was to estimate the effects of the Gompertz parameters on mean lifespan separately.
>
> Best, Jelle
>
>
> --
> Jelle Boonekamp
> Behavioural Biology
> University of Groningen
> P.O. Box 11103
> 9700 CC Groningen
> The Netherlands
>
> tel: +31.50.363 7853
> Sent with Sparrow
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/basta-users/attachments/20130220/12bbf8c1/attachment.html>
More information about the Basta-users
mailing list