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

st: Patrick Royston's ptrend file


From   Alan Kelly <[email protected]>
To   [email protected]
Subject   st: Patrick Royston's ptrend file
Date   Mon, 10 Jun 2002 07:55:30 +0000

Hi, last week I enquired of the list as to the availability of Patrick Royston's package 'ptrend' . Thanks to Nick Cox for retrieving the package, to Kit Baum for placing a copy on SSC and, of course, to Patrick for producing it and making it available.
Many thanks to all.
Alan Kelly


--On Thursday, June 6, 2002 15:03 +0100 Nick Cox <[email protected]> wrote:

Kit: Please put this package up on SSC for Patrick.

ptrend Stata module for trend analysis for proportions

ptrend calculates a chi-square statistic for the trend (regression) of
pvar on xvar, where pvar is the proportion rvar/(rvar+nrvar). A variable
called _prop, containing the values of pvar, is left behind by ptrend.
ptrend also gives a chi-square test for departure from the trend line.
ptrendi does the same analysis on user-entered data; the proportions are
now p1 = r1/(r1+nr1), p2 = r2/(r2+nr2), etc.

Stata 4 [sic] required.

Keywords: nonparametric, chi-square test, trend

Author: Patrick Royston, MRC Clinical Trials Unit
[email protected]


Nick
[email protected]

____________________________________________________________
Hi,
I'd appreciate assistance in locating a copy of Partick Royston's 'ptrend' ado file.
I know that this was sent to the list back in 1996 and I see that Fred Wolfe kindly replied - with a copy - to a query last year....

ptrend has one simple attraction compared with 'opartchi' - it presents the regression fit simultaneously with the test for trend and as I'm testing upwards of 1,000 different sets of observations, this facility is convenient.
Many thanks,
Alan

Dr. Alan Kelly
Biostatistician
Director, Small Area Health Research Unit (SAHRU)
Department of Community Health & General Practice
Trinity College Dublin

Tel: 353-1-6081385
email: [email protected]


---------------------------------------------------------------------------------------------------



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