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.
|Requires:||Stata version 8|
|Date of creation:||29 Oct 2014|
|Note:||This module may be installed from within Stata by typing "ssc install ptrend". Windows users should not attempt to download these files with a web browser.|
|Contact details of provider:|| Postal: Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA|
Web page: http://fmwww.bc.edu/EC/
More information through EDIRC
|Order Information:||Web: http://repec.org/docs/ssc.php|
When requesting a correction, please mention this item's handle: RePEc:boc:bocode:s426101. See general information about how to correct material in RePEc.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Christopher F Baum)
If references are entirely missing, you can add them using this form.