Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: ptrend for adjusted ORs

From   Joseph Coveney <>
To   Statalist <>
Subject   Re: st: ptrend for adjusted ORs
Date   Mon, 28 Aug 2006 21:30:06 +0900

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)

*   For searches and help try:

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