29.07.2014 Views

qreg - Stata

qreg - Stata

qreg - Stata

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 <strong>qreg</strong> — Quantile regression<br />

display options: noomitted, vsquish, noemptycells, baselevels, allbaselevels, nofvlabel,<br />

fvwrap(#), fvwrapon(style), cformat(% fmt), pformat(% fmt), sformat(% fmt), and<br />

nolstretch; see [R] estimation options.<br />

Options for bs<strong>qreg</strong><br />

✄<br />

✄<br />

Model<br />

<br />

quantile(#) specifies the quantile to be estimated and should be a number between 0 and 1, exclusive.<br />

Numbers larger than 1 are interpreted as percentages. The default value of 0.5 corresponds to the<br />

median.<br />

reps(#) specifies the number of bootstrap replications to be used to obtain an estimate of the<br />

variance–covariance matrix of the estimators (standard errors). reps(20) is the default and is<br />

arguably too small. reps(100) would perform 100 bootstrap replications. reps(1000) would<br />

perform 1,000 replications.<br />

✄ <br />

✄ Reporting<br />

level(#); see [R] estimation options.<br />

display options: noomitted, vsquish, noemptycells, baselevels, allbaselevels, nofvlabel,<br />

fvwrap(#), fvwrapon(style), cformat(% fmt), pformat(% fmt), sformat(% fmt), and<br />

nolstretch; see [R] estimation options.<br />

<br />

<br />

Remarks and examples<br />

Remarks are presented under the following headings:<br />

Median regression<br />

Quantile regression<br />

Estimated standard errors<br />

Interquantile and simultaneous-quantile regression<br />

What are the parameters?<br />

stata.com<br />

Median regression<br />

<strong>qreg</strong> fits quantile regression models. The default form is median regression, where the objective is<br />

to estimate the median of the dependent variable, conditional on the values of the independent variables.<br />

This method is similar to ordinary regression, where the objective is to estimate the conditional mean<br />

of the dependent variable. Simply put, median regression finds a line through the data that minimizes<br />

the sum of the absolute residuals rather than the sum of the squares of the residuals, as in ordinary<br />

regression. Equivalently, median regression expresses the median of the conditional distribution of<br />

the dependent variable as a linear function of the conditioning (independent) variables. Cameron and<br />

Trivedi (2010, chap. 7) provide a nice introduction to quantile regression using <strong>Stata</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!