[R] p value of trends for odds ratios (or hazard ratios)

peter dalgaard pdalgd at gmail.com
Sat Jan 4 13:13:02 CET 2014


On 04 Jan 2014, at 12:53 , Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote:

> 
> 
> On 04.01.2014 06:39, zhu yao wrote:
>> Dear Sir
>> Many papers calculated the p value of trends for odds ratios of ordered
>> category variables. I have found the tabodds command in Stata. But how to
>> do it in R?
> 
> Depends on the method you want to use ... and most ladies and gents on this list won't know Stata well enough to know what tabodds does.

We can google its help files, though.

I would expect that prop.trend.test is pretty much equivalent, or in general score tests in the appropriate logistic regression model. However, a worked example in Stata and some reproducible data would allow us to say with more confidence.

> 
> Best,
> Uwe Ligges
> 
> 
> 
> 
>> Thanks
>> 
>> *Yao Zhu*
>> 
>> 
>> *Department of UrologyFudan University Shanghai Cancer CenterShanghai,
>> China*
>> 
>> 	[[alternative HTML version deleted]]
>> 
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>> 
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com




More information about the R-help mailing list