Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Weibull


From   Nikolaos Pandis <npandis@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Weibull
Date   Mon, 2 Mar 2009 08:48:59 -0800 (PST)

Dear Bobby,
 
Thank you very much for the posting. 
 
I have the previous version of the book on survival analysis with Stata that you have coauthored with M. Cleves and W. Gould. Any sections in there that will help me with the current problem?
 
Best wishes,
 
Nikolaos

--- On Mon, 3/2/09, Roberto G. Gutierrez, StataCorp <rgutierrez@stata.com> wrote:


From: Roberto G. Gutierrez, StataCorp <rgutierrez@stata.com>
Subject: Re: st: Weibull
To: statalist@hsphsun2.harvard.edu
Date: Monday, March 2, 2009, 6:15 PM


Nikolaos Pandis <npandis@yahoo.com> asks:

> I would like to generate continuous data for two groups for which I would
> like to evaluate whether there is a difference between their means (I could
> use use a t-test). I would like to be able to set the mean and sd of the two
> groups. The data would represent bond failure strength (in MPa) of two
> different materials (the 2 groups).

> Additionally, I would like to generate data for the same experiment that
> follows the Weibull distribution and compare the two groups.

> It is of interest to see the results of the analysis on the data under the
> ttest analysis and under an analysis suitable for the Weibull distribution.
> The objective is to show how different analyses of similar data might point
> to different results, and the importance of selecting the correct
> distribution and analysis.

Nikolaos has already received some very good advice, to which I would only add
that I have written the routine -gengammareg- available via  

   . findit gengammareg

-gengammareg- generates data from gamma regression as implemented by -streg-,
but also includes as special cases the exponential, Weibull and lognormal
distributions; see -help gengammareg- after installing.

The two-sample test Nikolaos describes can be retooled as regression on a 
dummy variable, allowing the use of -gengammareg- here.

--Bobby
rgutierrez@stata.com
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index