Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: How do I execute the "intreg" command succcessfully?


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>, "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: How do I execute the "intreg" command succcessfully?
Date   Wed, 17 Feb 2010 18:29:24 -0500

At 05:30 PM 2/17/2010, Martin Ryan wrote:
Hi all,

I cannot execute the "intreg" command in Stata, despite my best efforts.

Here is yet another example, which is a slight variation on the example already contained in Stata's printed manuals:

http://www.nd.edu/~rwilliam/xsoc73994/intreg2.pdf

The key commands are

webuse womenwage, clear
recode wagecat (5=.)(10=5)(15=10)(20=15)(25=20)(30=25)(40=30)(50=40)(51=50), gen(wage1)
recode wagecat(51=.), gen(wage2)
intreg wage1 wage2 age age2 nev_mar rural school tenure

In the above, wage1 gives lower bounds for the intervals. The (5=.) sets the lowest bound at negative infinity. wage2 gives the upper bounds. The (51=.) sets the highest upper bound at positive infinity.

You didn't list the printed Stata manual entry for intreg as one of your sources. I think it is pretty good, and if you have Stata 11 you should have it as a pdf file.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

*
*   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   |   Site index