Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Airey, David C" <david.airey@vanderbilt.edu> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | re: st: Stata chi-squared ptrendi command |
Date | Fri, 22 Apr 2011 12:10:24 -0500 |
. Maybe you need to install it from SSC? . ssc describe ptrend -------------------------------------------------------------------------------- package ptrend from http://fmwww.bc.edu/repec/bocode/p -------------------------------------------------------------------------------- TITLE 'PTREND': module for trend analysis for proportions DESCRIPTION/AUTHOR(S) 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. Distribution-Date: 20020605 Author: Patrick Royston, MRC Clinical Trials Unit, UK Support: email patrick.royston@ctu.mrc.ac.uk INSTALLATION FILES (type net install ptrend) ptrend.ado ptrend.hlp ptrendi.ado ptrendi.hlp -------------------------------------------------------------------------------- (type -ssc install ptrend- to install) . which ptrend command ptrend not found as either built-in or ado-file r(111); * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/