Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: RE: adjusted percentages and adjusted odds ratios


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: RE: adjusted percentages and adjusted odds ratios
Date   Thu, 25 Sep 2003 13:38:43 -0400

I can answer the question about the first method.  When using xi the groups
created from i.insgrp2 are static once the command is executed -- they do
not change when you change the value of insgrp2 after the fact.  Therefore,
since insgrp2 is not in your model (instead it is _Iinsgrp*), changing it's
value has no impact on predict.  You would need to change the values of the
variables created by xi.   That is, in effect, what your second proposed
approach is, but there you only change one dummy variable to all ones, but
you don't reset the other dummy variables to zero, so I don't think you will
get the answers you're looking for.

Michael Blasnik
michael.blasnik@verizon.net


----- Original Message ----- 
From: <Elizabeth.EBY@med.va.gov>
To: <Elizabeth.EBY@med.va.gov>; <statalist@hsphsun2.harvard.edu>;
<Laurel.Copeland@med.va.gov>
Sent: Thursday, September 25, 2003 12:53 PM
Subject: st: RE: adjusted percentages and adjusted odds ratios


> Sorry about the attachment, here is the document.
>
> Trying to get adjusted percentages from logistic model.  1st way-all
> estimates are exactly the same.
>
> xi: svylogit restcever i.insgrp2 i.race i.ppgender i.income3 i.edugp2
> i.agecat2 i.newmeds6mos i.numdisgp, or
>
> ****Percent va ins who restricts
>
> gen temprest=insgrp2
> recode insgrp2 2=1 3=1 4=1 9=1
> predict restricted
> summarize restricted restcever
> drop insgrp2
> gen insgrp2=temprest
> drop temprest restricted

snip......


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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