Re: [R] fitting a lognormal distribution using cumulative probabilities

2008-02-23 Thread ahimsa campos-arceiz
Dear Professor Ripley, thanks again for your mail and useful comments. Surv(event = 1) means uncensored. If you try event = 0, the fitter diverges towards an exact fit, as I said it should. Sorry, I misunderstood this. (BTW, using a .com address suggests you are a COMpany and in the absence of

Re: [R] fitting a lognormal distribution using cumulative probabilities

2008-02-23 Thread Prof Brian Ripley
Your example code is asserting that the events occurred at the times in 'obs.time', not before those times. Surv(event = 1) means uncensored. If you try event = 0, the fitter diverges towards an exact fit, as I said it should. Yes, you will get a good fit to the ECDF, but you are modelling the

Re: [R] fitting a lognormal distribution using cumulative probabilities

2008-02-23 Thread ahimsa campos-arceiz
Dear Prof Ripley and Dimitris (cc R-list), thank you very much for your very insightful responses. I've been checking how to use survreg{survival} to fit a left-censored lognormal distribution, and I was surprised to find that results are exactly the same as with fitdistr{MASS}. Here is an exampl

Re: [R] fitting a lognormal distribution using cumulative probabilities

2008-02-22 Thread Prof Brian Ripley
On Sat, 23 Feb 2008, ahimsa campos-arceiz wrote: > Dear all, > > I'm trying to estimate the parameters of a lognormal distribution fitted > from some data. > > The tricky thing is that my data represent the time at which I recorded > certain events. However, in many cases I don't really know when

[R] fitting a lognormal distribution using cumulative probabilities

2008-02-22 Thread ahimsa campos-arceiz
Dear all, I'm trying to estimate the parameters of a lognormal distribution fitted from some data. The tricky thing is that my data represent the time at which I recorded certain events. However, in many cases I don't really know when the event happened. I' only know the time at which I recorded