Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Country-Dummy as random intercept?


From   Melissa Butler <[email protected]>
To   [email protected]
Subject   Re: st: Country-Dummy as random intercept?
Date   Fri, 05 Jun 2009 11:27:17 -0400

Christian,

You only need to use the country variable as an option after the model.

e.g xtlogit y x, i(country) quad(30)

Melissa

Christian Weiss wrote:
Dear Statalist,

I am using a variable "country" as random intercept, using the REML estimator.

The variable country takes the Value 1 for Japan, 2 for US, 3 for UK
and so on...

In an ordinary OLS regression I would include the country variable by
using xi (xi: regress i.country). Do I have to do this for a the
random intercept model, too? (i.e. create a dummy variable for each
country insead of using the original "country" variable?

Thanks a lot,

best regards
Chris
*
*   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/

--
Melissa Butler, PharmD, MPH, BCPS
PhD Candidate
Division of Pharmaceutical Outcomes and Policy
Eschelman School of Pharmacy
UNC Chapel Hill
tel: 919-724-7947
fax: 919-966-8486

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index