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

st: RE: use of -predlog- [was: Date: Tue, 30 Sep 2003 13:03:19 -0400]


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: use of -predlog- [was: Date: Tue, 30 Sep 2003 13:03:19 -0400]
Date   Tue, 30 Sep 2003 18:14:30 +0100

-predlog- (Rich Goldstein, STB-29) leaves behind
a variable YHTSMEAR by default. This is explained
in the on-line help.

So you just go

. predlog response covariate

and it's there waiting in memory.

I wrote a -smear- which is, more or less, -predlog-
written closer to the way Rich would write it today
if he were writing it today, except that he isn't.
(-predlog- was written for Stata 4; it still works
fine, but conventions change.)

One good reason for not putting that in the public
domain is that someone would then want it to do
smearing in general, which is not my aim.

Another is that if you want this, it is arguable
that you are better off with

. glm response covariate, link(log)
. predict predicted

There's a large literature in this field. The papers
of W.G. Manning in health economics are one valuable
resource. He is, or at least was, a member of Statalist.

Nick
n.j.cox@durham.ac.uk

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Huang, Shi
> Sent: 30 September 2003 18:03
> To: 'statalist@hsphsun2.harvard.edu'
> Subject: st: Date: Tue, 30 Sep 2003 13:03:19 -0400
>
>
> Any help on how to get the YHTSMEAR using predlog?  Please
> provide an
> example.
>
>
> Thanks
> *
> *   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/

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