Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

re: st: Stata chi-squared ptrendi command

From   "Airey, David C" <>
To   "" <>
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

      'PTREND': 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.
      Distribution-Date: 20020605
      Author: Patrick Royston, MRC Clinical Trials Unit, UK
      Support: email

INSTALLATION FILES                               (type net install ptrend)
(type -ssc install ptrend- to install)

. which ptrend
command ptrend not found as either built-in or ado-file

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index