Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Dummy variables
From
Maarten buis <[email protected]>
To
[email protected]
Subject
Re: st: Dummy variables
Date
Tue, 13 Jul 2010 10:08:44 +0000 (GMT)
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
--- On Tue, 13/7/10, Frank Peter wrote:
> I am trying to replicate how Capon 2005 created dummy
> variables for 60 hospitals for logistic regression.
>
> "A second model was fitted including all the variables
> selected by the stepwise model and 60 dummy variables
> identifying single hospitals. The dummy variables were coded
> in order to take the overall rate as a reference. Adjusted
> ORs were computed for every hospital. All analyses were
> carried out using STATA software version 8.0."
>
> I will be glad if someone can explain how create dummy
> variables that will include all the 60 hospitals, so that I
> can calculate the adjusted prevalence ratio for all.
Sounds like "effect coding", which has been implemented in
-xi3- (to install type in Stata -findit xi3-).
Hope this helps,
Maarten
*
* 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/