Re: [R] Simulating from the Weibull with right censoring

2014-03-24 Thread Göran Broström
On 2014-03-24 09:34, Göran Broström wrote: On 2014-03-24 07:22, David Winsemius wrote: On Mar 23, 2014, at 9:14 PM, Lucy Leigh wrote: Hi everyone, I am currently attempting to simulate some survival data, based on a Weibull model. I basically need to simulate some survival data so that I c

Re: [R] Simulating from the Weibull with right censoring

2014-03-24 Thread Göran Broström
On 2014-03-24 07:22, David Winsemius wrote: On Mar 23, 2014, at 9:14 PM, Lucy Leigh wrote: Hi everyone, I am currently attempting to simulate some survival data, based on a Weibull model. I basically need to simulate some survival data so that I can then test out a program I'm writing, befo

Re: [R] Simulating from the Weibull with right censoring

2014-03-23 Thread David Winsemius
On Mar 23, 2014, at 9:14 PM, Lucy Leigh wrote: > Hi everyone, > > I am currently attempting to simulate some survival data, based on a Weibull > model. I basically need to simulate some survival data > so that I can then test out a program I'm writing, before applying it to some > real data. >

Re: [R] Simulating from the Weibull with right censoring

2014-03-23 Thread Lucy Leigh
: Lucy Leigh Subject: Re: [R] Simulating from the Weibull with right censoring Hi: I don't think you're going about this the right way. It appears to me that your (unnecessary) loop is performing truncation instead, and there is a sharp distinction in the survival literature between censorin

[R] Simulating from the Weibull with right censoring

2014-03-23 Thread Lucy Leigh
Hi everyone, I am currently attempting to simulate some survival data, based on a Weibull model. I basically need to simulate some survival data so that I can then test out a program I'm writing, before applying it to some real data. I've managed to create failure time data, using the rweibull