Re: [R] differences between survival models between STATA and R

2012-08-31 Thread Göran Broström
On Mon, Jul 9, 2012 at 3:59 PM, Terry Therneau wrote: > Without more information, we can only guess what you did, or what you are > seeing on the page that is "different". > > I'll make a random guess though. There are about 5 ways to paramaterize > the Weibull distribution. The standard packag

Re: [R] differences between survival models between STATA and R

2012-07-09 Thread jthetzel
Be sure you reply or forward your message to me to the r-help listhost. I might not have time to review it tonight, while others might. Jeremy On Mon, Jul 9, 2012 at 2:38 PM, JPF [via R] < ml-node+s789695n4635888...@n4.nabble.com> wrote: > Please, find an example with a data set here. > > The d

Re: [R] differences between survival models between STATA and R

2012-07-09 Thread jthetzel
UCLA's Advanced Technical Services' Statistical Computing website often has very good resources for comparing analyses between R, Stata, and SAS ( http://www.ats.ucla.edu/stat ). For accelerated failure time models, I believe that it has some examples for Stata ( http://www.ats.ucla.edu/stat/stata/

Re: [R] differences between survival models between STATA and R

2012-07-09 Thread Robert W. Baer
On 7/9/2012 9:17 AM, Javier Palacios Fenech wrote: Please. After, Terry's response I guess I was expecting to hear how your comparison between R and STATA went when you used the R function, survreg() for your analysis. We still don't know what your data look like. The posting guide asks for

Re: [R] differences between survival models between STATA and R

2012-07-09 Thread Javier Palacios Fenech
Please. find an example here. With exactly the same data set, I run two hazard models following the instructions for each function. aftreg(formula = Surv(sta, sto, S) ~ a + b + c + d + e + f + g , factor(F), data = data.frame(SURV), dist = "weibull", id = ID) streg f1 f2 f3 f4 f5 a b c d

Re: [R] differences between survival models between STATA and R

2012-07-09 Thread Terry Therneau
Without more information, we can only guess what you did, or what you are seeing on the page that is "different". I'll make a random guess though. There are about 5 ways to paramaterize the Weibull distribution. The standard packages that I know, however, tend to use the one found in the Kal

Re: [R] differences between survival models between STATA and R

2012-07-06 Thread Joshua Wiley
Hi J, You have not provided nearly enough information for us to evaluate whether the results should be similar. You are talking about two completely different packages, with no information on your data, only a small amount of information about your model ("the same analysis") but clearly the anal

[R] differences between survival models between STATA and R

2012-07-06 Thread JPF
Dear Community, I have been using two types of survival programs to analyse a data set. The first one is an R function called aftreg. The second one an STATA function called streg. Both of them include the same analyisis with a weibull distribution. Yet, results are very different. Shouldn't t