Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Is there an alternative to -adjust-?


From   "Ariel Linden, DrPH" <ariel.linden@gmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Is there an alternative to -adjust-?
Date   Fri, 23 Dec 2011 16:01:35 -0500

Hi Stata Gurus,

I was wondering if there is an alternative to -adjust- in version 12 that
can generate predictions? According to the help file,

" adjust has been superseded by margins.  Except for adjust's generate() and
stdf options, the margins command can do everything that adjust did and
more...."  "adjust continues to work but does not support factor variables
and will often fail if you do not run your estimation command under version
control, with the version set to less than 11.  This help file remains to
assist those who encounter an adjust command in old do-files and programs."

This suggests to me that this command (performing this particular function)
may be phased out. If so, what will replace the following:

********* code*******************
regress price mpg rep78 headroom trunk weight length foreign
adjust foreign=1, by(foreign) gen(m1)
adjust foreign=0, by(foreign) gen(m0)

*********************************

Thanks

Ariel



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index