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

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: RE: Weibull |

Date |
Mon, 2 Mar 2009 15:38:14 -0000 |

Thanks for this. I suspect you need to read up on -st- methods. I don't think there's a wired-in Stata function for Weibull random deviates, but you don't need one. In the parameterisation used by -weibullfit-, with scale parameter b and shape parameter c, the recipe is something like gen weibull = b * (-ln(runiform()))^(1 / c) Nick n.j.cox@durham.ac.uk Nikolaos Pandis Thank you for the posting, and I apologize for not being very clear. I am a novice and I think simulate is the more appropriate since I would like to create data for testing under different scenarios. This is a furher question and possibly a better explanation of the problem. I would like to test success/failure using count data and compare the results with those derived by using Weibull which will take in account the time-to-event information and create plot(s) that forecast failure. So, I think, I need to first create the data and then proceed with analysing either using Binomial or the weibull approach. Nick Cox <n.j.cox@durham.ac.uk> wrote: I don't understand what you mean by "generate" here. Do you mean simulate? Likewise, it is not clear to me whether (a) you have considered -st- methods or (b) your problem requires -st- methods. If no to (b), -weibullfit- from SSC is one program that may help. More generally, -findit weibull- points to official and user-written support. It's an easy keyword to use. Nikolaos Pandis 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. * * 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/

**References**:**Re: st: RE: Weibull***From:*Nikolaos Pandis <npandis@yahoo.com>

- Prev by Date:
**AW: st: BRR Bootstrap weights w/xt commands** - Next by Date:
**Re: st: RE: AW: how to reconstruct a minimum acceptable income from a set of binary variables?** - Previous by thread:
**Re: st: RE: Weibull** - Next by thread:
**RE: st: RE: Weibull** - Index(es):

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