Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[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 <>
To   "" <>, "" <>
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:

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

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index