Stata: Data Analysis and Statistical Software
   >> Home >> Resources & support >> FAQs >> Fitting gompit models with cloglog

How can I fit an extreme value or gompit regression?

Title   Fitting gompit models with cloglog
Author James Hardin, StataCorp
Date January 1999

This is easy to do in Stata using the cloglog command. The gompit model (extreme value) has the success/failure coding of the dependent variable reversed from the complementary log-log model. So, to fit a gompit model in Stata, you can simply generate a reverse-coded dependent variable and use cloglog as in

        . gen newy = (y==0)

        . cloglog newy x1 x2 x3
Bookmark and Share 
FAQs
What's new?
Statistics
Data management
Graphics
Programming Stata
Mata
Resources
Internet capabilities
Stata for Windows
Stata for Unix
Stata for Mac
Technical support
Like us on Facebook Follow us on Twitter Follow us on LinkedIn Google+ Watch us on YouTube
Follow us
© Copyright 1996–2013 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index   |   View mobile site