Jennifer N Solis wrote:
I am trying to calculate the ptrend for an adjusted OR. I know that the
command ptrend or ptrendi works for my crude OR, but is there a way to
include the other variables that I am adjusting with.
--------------------------------------------------------------------------------
Would -tabodds- do what you want? Or even -npt_s-? (The latter still might
have problems correcting for ties when a stratified analysis is asked for.)
Joseph Coveney
set more off
webuse lbw.dta, clear
tabodds low ptl
npt_s low, by(ptl)
tabodds low ptl, adjust(age smoke)
npt_s low, by(ptl) strata(age smoke)
exit
*
* 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/