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: Controlling for variables

From   Don Ruby <[email protected]>
To   [email protected]
Subject   Re: st: Controlling for variables
Date   Mon, 25 Oct 2010 19:36:18 -0400

Say you are regressing log(wages) on age and education. Assume that
your wage variable is entitled "wage". You would type the following:

gen logwage=log(wage)

xi: reg logwage age educ

If you want Stata to compute standard errors that are robust to

xi: reg logwage age educ, robust

I'm assuming that your variable of interest is education, so any other
"control" variables can be listed alongside your variable of interest.



On Mon, Oct 25, 2010 at 5:14 PM, dpbowes <[email protected]> wrote:
> Hi! I am somewhat new to Stata and trying to figure out how to control for
> variables in a regression (age, education)  I know all I am doing is
> holding them constant but for a large data set what entries do I need to
> control for those variables.  Thanks for your help!
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

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