{smcl} {* 16oct2001}{...} {hline} help for {hi:intreg2} {right:(manual: {hi:[R] tobit})} {hline} {title:interval regression with heteroskedasticity} {p 4 12}{cmd:intreg}{space 2}{it:depvar1} {it:depvar2} [{it:indepvars}] [{it:weight}] [{cmd:if} {it:exp}] [{cmd:in} {it:range}] [{cmd:,} {cmdab:h:et(}{it:varlist}{cmd:)} {cmdab:nocon:stant} {cmdab:r:obust} {cmdab:cl:uster(}{it:varname}{cmd:)} {cmdab:sc:ore(}{it:newvar1} {it:newvar2}{cmd:)} {cmdab:l:evel(}{it:#}{cmd:)} {cmdab:const:raints(}{it:numlist}{cmd:)} {cmdab:nolo:g} {it:maximize_options}] {p}{cmd:by} {it:...} {cmd::} may be used with these commands; see help {help by}. {p}{cmd:aweight}s, {cmd:fweight}s, {cmd:pweight}s and {cmd:iweight}s are allowed. {p}These commands share the features of all estimation commands; see help {help est}. {p}The syntax of {help predict} following {cmd:intreg2} is {p 8 16}{cmd:predict} [{it:type}] {it:newvarname} [{cmd:if} {it:exp}] [{cmd:in} {it:range}] [{cmd:,} {it:statistic}] {p}where {it:statistic} is {p 8 29}{cmd:xb} {space 13} fitted values; the default{p_end} {p 8 29}{cmdab:p:r}{cmd:(}{it:a}{cmd:,}{it:b}{cmd:)} {space 8} Pr({it:a} 20) and {cmd:pr(20,ub)} calculates Pr(xb+u > 20) in observations for which ub==. (and calculates Pr(20 < xb+u < ub) elsewhere). {p 0 4}{cmd:e(}{it:a}{cmd:,}{it:b}{cmd:)} calculates E(xb+u | {it:a} < xb+u < {it:b}), the expected value of y|x conditional on y|x being in the interval ({it:a},{it:b}), which is to say, y|x is censored. {it:a} and {it:b} are specified as they are for {cmd:pr()}. {p 0 4}{cmd:ystar(}{it:a}{cmd:,}{it:b}{cmd:)} calculates E(Y*), where Y* = {it:a} if xb+u <= {it:a}, Y* = {it:b} if xb+u >= {it:b}, and Y* = xb+u otherwise, which is to say, Y* is truncated. {it:a} and {it:b} are specified as they are for {cmd:pr()}. {p 0 4}{cmd:stdp} calculates the standard error of the prediction. {p 0 4}{cmd:stdf} calculates the standard error of the forecast. {title:Examples: } {p}Assume a dataset contains income, truncated and in categories. Some of the observations on income are y1 y2 {p 9 27}20000{space 4}24000 {space 2} meaning 20000 <= income <= 24000{p_end} {p 8 27}100000{space 6}. {space 4} meaning 100000 <= income {p}Variable z specifies the conditional variance. The command to estimate with these data is {p 8 12}{inp:. intreg2 y1 y2 x1 x2 x3 x4, het(z)} {title:Also see} {p 1 14}Manual: {hi:[U] 23 Estimation and post-estimation commands},{p_end} {p 10 14}{hi:[U] 29 Overview of model estimation in Stata},{p_end} {hi:[R] tobit} {p 0 19}On-line: help for {help constraint}, {help est}, {help postest}; {help heckman}, {help oprobit}, {help regress}, {help svyintreg}, {help tobit}, {help xtintreg}, {help xttobit}{p_end}