On Thu, 15 Sep 2011 09:47:35 +1200, Rolf Turner <rolf.tur...@xtra.co.nz> wrote:
On 15/09/11 07:21, Torbjørn Ergon wrote:
Dear list,

I'm looking for a function to generate (simulate) a random Weibull point process. Can anyone help?

Cheers,

Torbjørn Ergon, University of Oslo

Do you mean a renewal process with the inter-event times having
a Weibull distribution? Should be trivial to code up, using rweibull.

    cheers,

        Rolf Turner


Thanks for your reply!

Yes, in a way - but the parameters of the Weibull must change after each event. I'm trying to simulate events that can happen multiple times thru the life of an individual and where the hazard rate is age dependent according to a Weibull hazard. Hence, after the first event has occurred at time t1 the hazard rate should be h(x; t1, shape,scale) = (shape/scale)*((x-t1)/scale)^(shape-1). This doesn't seem trivial to do using 'rweibull' - but perhaps I'm missing something (trivial).

Cheers,

Torbjørn

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to