Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: st: Stata chi-squared ptrendi command


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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index