![Statalist](/includes/images/head_statalist.jpg) |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: help me please,about Stata
Hello
Let me first re-state what has been said many times on this list serve: try to be as specific as possible in your email subject to the list as the majority of emails are about getting help and usually about Stata...
To answer your question, I am going to make the assumption that the variable black and group-year are categorical variables and that lwage and exper are continuous, then you might want to try the following code
xi : xtreg lwage i.black exper i.group_year, re
Also, refer to help xi
I hope this helps,
Hind
-----Original Message-----
> Date: Sat Jul 26 19:24:02 PDT 2008
> From: "[gb2312] =?UNKNOWN?B?utjQobjV?=" <[email protected]>
> Subject: st: help me please,about Stata
> To: [email protected]
>
> Dear Sir/Madam,
>
> I am trying to do a test in stata using my panel dataset and I keep
> getting the following message:
> i () required
> r (198)
> (the command line is xtreg lwage black exper, re)
>
> Then I add the option i(<grp_year>) to the end of the command.(year means from 2001 to 2006),but no matter what I change, I keep getting that message.
>
>
> Please help
>
> Thanks
>
> ---------------------------------------------
> Xiaogang He
> Associate Professor and Associate Dean
>
> School of International Business Administration
> Shanghai University of Finance and Economics
> 777 GuoDing Road, Shanghai 200433, China
>
> Tel: 86-21-65903670
> Mobile:86-1339114
>
>
>
> *
> * 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/
*
* 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/