Template-Type: ReDIF-Software 1.0
Title: KEYPLOT: Stata module to generate graph with many legends
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Author-X-Comment: some comment
Programming-Language: Stata
Abstract: keyplot varlist [if] [in] [weight] [, options] may be used 
 just as graph varlist [if] [in] [weight] [, options] 
 except that any user t1( ) or t2( ) is ignored, as is any user-set textsize. 
 This shows a legend for up to 10 variables. Even with 10 you have to use some 
 point symbols more than once, although you get them in different colours. 
Keywords: graphics
Series: Statistical Software Components 
Number: S369902
Creation-Date: 19990209
File-URL: http://fmwww.bc.edu/repec/bocode/keyplot.ado
File-Format: text/plain
File-Size: 102 lines
File-Function: program code
Handle: RePEc:boc:bocode:S369902

Template-Type: ReDIF-Software 1.0
Title: MFRACPOL: Stata module to estimate fractional polynomial models
Author-Name: Patrick Royston
Author-Email: proyston@ic.ac.uk
Author-WorkPlace-Name: Imperial College 
Author-Name: Gareth Ambler
Author-Email: gambler@rpms.ac.uk
Author-WorkPlace-Name: Imperial College School of Medicine
Programming-Language: Stata
Abstract: mfracpol selects the fractional polynomial (FP) model which best
 predicts the outcome variables. It is an update of the version published in
 STB-43 which did not work with Stata 6.
Keywords: estimation, fractional polynomials
Series: Statistical Software 
Number: S369901
Requires: Stata version 6.0
Creation-Date: 19990217
File-URL: http://www.stata.com/users/proyston/mfracpol
File-Format: text/plain
File-Function: Stata6 'net from' facility (without module name)
Handle: RePEc:boc:bocode:S369901xxx

Template-Type: ReDIF-Software 1.0
Title: SBPLOT: Stata module to generate scatter plot with one y variable shown by vertical bars
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: sbplot plots the first-named variable against the last-named variable as a 
 series of unshaded bars rising above or falling below one or more base lines. 
 In addition any other variables will also be plotted against xvar. sbplot may 
 be useful for combining bars with other styles of representing data, such as 
 continuous lines for time series or error bars for showing uncertainties. 
 (Version 6 users should install sbplot; version 5 users sbplot5.) 
Keywords: graphics, bar charts, error bars, scatter plots 
Series: Statistical Software Components 
Number: S369102
Requires: Stata version 6.0
Creation-Date: 19990209
File-URL: http://fmwww.bc.edu/repec/bocode/sbplot.ado
File-Format: text/plain
File-Size: 84 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/sbplot.hlp
File-Format: text/plain
File-Size: 67 lines
File-Function: help file
Handle: RePEc:boc:bocode:S369102

Template-Type: ReDIF-Software 1.0
Title: SBPLOT5: Stata module to generate scatter plot with one y variable shown by vertical bars
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: sbplot plots the first-named variable against the last-named variable as a 
 series of unshaded bars rising above or falling below one or more base lines. 
 In addition any other variables will also be plotted against xvar. sbplot may 
 be useful for combining bars with other styles of representing data, such as 
 continuous lines for time series or error bars for showing uncertainties. 
 (Version 6 users should install sbplot; version 5 users sbplot5.) 
Keywords: graphics, bar charts, error bars, scatter plots
Series: Statistical Software Components 
Number: S369101
Creation-Date: 19990209
File-URL: http://fmwww.bc.edu/repec/bocode/sbplot5.ado
File-Format: text/plain
File-Size: 86 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/sbplot5.hlp
File-Format: text/plain
File-Size: 67 lines
File-Function: help file
Handle: RePEc:boc:bocode:S369101

Template-Type: ReDIF-Software 1.0
Title: TAB_CHI: Stata modules for tabulation and chi-square tasks 
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: chitest and chitesti carry out chi-square tests for univariate frequency 
 distributions. chitesti is the immediate command version of chitest. tabchi and 
 tabchii produce two-way tables of frequencies with chi-square and residuals, 
 including observed and expected frequencies and raw, Pearson and adjusted 
 residuals. tabchii is the immediate command version of tabchi. tabm produces 
 tabulation of multiple variables.  tabsort produces one- and two-way tables 
 with sorted rows and/or columns. tabsplit tabulates and generate string 
 variables split into parts. All these programs are for Stata 5.0 and all have 
 been previously published on this list, but most are revised here over previous 
 versions. There is summary help in tab_chi.hlp.
Keywords: tabulation, categorical data, chi-square tests, string variables
Series: Statistical Software Components 
Number: S368901
Creation-Date: 19990209
File-URL: http://fmwww.bc.edu/repec/bocode/tab_chi.zip
File-Format: application/bin/zipped
File-Size: 17 Kb
File-Function: program code
Handle: RePEc:boc:bocode:S368901

Template-Type: ReDIF-Software 1.0
Title: EGENODD: Stata modules to extend generate command
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: These modules are extensions to generate (egen). 
 Those flagged (version 6.0) work only under Stata version 6.0.
 any(varname), values(integer numlist) is varname if varname is
    equal to any of the integer values in a supplied numlist, and
    missing otherwise. See also eqany( ). (version 6.0)
 atan2(sinevar cosinevar) [ , radians ] supplies arctangent of
    sinevar/cosinevar as a angle between 0 and 360 degrees, or
    optionally between 0 and 2 pi radians.
 concat(varlist) [ , punct(str) decode maxlength(#) ]
    concatenates varlist to produce a string variable. Values of string
    variables are unchanged. Values of numeric variables are converted
    to string as is, or may be decoded under option decode, in which
    case maxlength() may also be used to control the maximum length
    of label used. By default, variables are added end-to-end:
    punct( ) may be used to specify punctuation, such as a space,
    punct(" "), or a comma, punct(,). (version 6.0)
 eqany(varname), values(integer numlist) is 1 if varname is equal
    to any of the integer values in a supplied numlist, and 0 otherwise.
    See also any( ). (version 6.0)
 head(strvar) , punct(pchars) trim gives the first `word' of
    string variable strvar. Given pchars, by default a single space
    " ",  the head is whatever precedes the first occurrence of
    pchars, or the whole of the string if it does not occur. head( )
    applied to "frog toad" is "frog" and to "frog" is "frog".
    head( ) applied to "frog,toad" is similarly "frog" with
    punct(,).  The trim option trims any leading or trailing spaces.
    See also tail( ). (version 6.0)
 kurt(varname) [ , by(byvarlist) ] returns the kurtosis of
    varname.
 mad(exp) [ , by(byvarlist) ] returns the median absolute
    deviation from the median of exp.
 mdev(exp) [ , by(byvarlist) ] returns the mean absolute
    deviation from the mean of exp.
 pc(exp) [ , by(byvarlist) ] returns exp scaled to be a percent
    of total, between 0 and 100. See also prop( ).
 pp(varname) [ , by(byvarlist) a(#) ] sorts varname smallest to
    largest and computes the corresponding plotting position
    (i - a) / (n - 2a + 1) for i = 1 (smallest), ..., n (largest). The
    default a = 0.5 yields (i - 0.5) / n, while a = 0 yields
    i / (n + 1).
 prop(exp) [ , by(byvarlist) ] returns exp scaled to be a
    proportion of total, between 0 and 1. See also pc( ).
 rev(varname) [ , by(byvarlist) ] returns the reverse of varname,
    that is varname[1] is exchanged with varname[_N], and so forth.
 rmed(varlist) returns the median across variables for each
    observation. (The number of variables must not exceed the number of
    observations.)
 rotate(varname) [ , start(#) max(#)]  rotates a set of
    integers 1, ..., max. Suppose we have months 1, ..., 12 and we wish
    to map 4 to 1, 5 to 2, ..., 12 to 9, 1 to 10, 2 to 11, 3 to 12. This
    would be achieved by start(4) max(12).
 seq( ) [ , from(#) to(#) block(#) by(byvarlist) ]
    returns integer sequences. Values start from from (default 1) and
    increase to to (default the maximum number of values) in blocks
    (default size 1). If to is less than the maximum number, sequences
    restart at from. Numbering may also be separate within groups
    defined by byvarlist, or decreasing if to is less than from.
    Sequences depend on the sort order of observations, following three
    rules: (1) observations excluded by if or in are not counted (2)
    observation are sorted by byvarlist, if specified  (3) otherwise the
    order is that when called. Note that no stuff is specified. This
    option is based on seq. (version 6.0)
 skew(varname) [ , by(byvarlist) ] returns the skewness of
    varname.
 tail(strvar) , punct(pchars) trim gives the `remainder' of
    string variable strvar. Given pchars, by default a single space
    " ",  the tail is whatever follows the first occurrence of pchars,
    which will be the empty string "" if it does not occur. tail( )
    applied to "frog toad" is "toad" and to "frog" is "".
    tail( ) applied to "frog,toad" is similarly "toad" with
    punct(,).  The trim option trims any leading or trailing spaces.
    See also head( ). (version 6.0)
Keywords: egen, generation of variables, string variables, summary statistics 
Requires: Stata 5.0 (Stata 6.0 for some modules)
Series: Statistical Software Components
Number: S368501
Creation-Date: 19990203
File-URL: http://fmwww.bc.edu/repec/bocode/egenodd.zip
File-Format: application/bin/zipped
File-Size: 10 Kb
File-Function: archive of program code and help files
File-URL: http://www.stata.com/users/njc/egenodd
File-Format: text/plain
File-Function: Stata6 'net from' facility (without module name)
Handle: RePEc:boc:bocode:S368501

Template-Type: ReDIF-Software 1.0
Title: _GCONCAT: Stata module to concatenate variables into a new string variable 
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: Use _gconcat by calling egen newvar = concat(varlist). Options are punct(str) 
 decode maxlength(#). _gconcat concatenates varlist to produce a new string 
 variable. Values of string variables in varlist are unchanged. Values of 
 numeric variables are converted to string as is, or may be decoded under option 
 decode, in which case maxlength() may also be used to control the maximum 
 length of label used. By default, variables are added end-to-end: punct( ) may 
 be used to specify punctuation, such as a space, punct(" "), or a comma, 
 punct(,). _gconcat requires Stata version 6.0.   
Keywords: string variables, concatenation, data management 
Series: Statistical Software Components
Requires: Stata 6.0 
Number: S368401
Creation-Date: 19990202
File-URL: http://fmwww.bc.edu/repec/bocode/_gconcat.ado
File-Format: text/plain
File-Size: 61 lines
File-Function: program code
Handle: RePEc:boc:bocode:S368401

Template-Type: ReDIF-Software 1.0
Title: GENNORM: Stata module to generate correlated normal random deviates
Author-Name: William W. Gould
Author-Email: wgould@stata.com
Author-WorkPlace-Name: Stata Corporation
Programming-Language: Stata
Abstract: gennorm generates any number of correlated normal random deviates.
 A bivariate correlation must be specified for a pair. A correlation matrix
 must be specified for three or more.
Keywords: random numbers, Monte Carlo
Requires: Stata 6.0 
Series: Statistical Software Components
Number: S368303
Creation-Date: 19990201
File-URL: http://www.stata.com/users/wgould/gennorm
File-Format: text/plain
File-Function: Stata6 'net from' facility (without module name)
Handle: RePEc:boc:bocode:S368303

Template-Type: ReDIF-Software 1.0
Title: P_VLISTS: Stata module to parse multiple varlists
Author-Name: William W. Gould
Author-Email: wgould@stata.com
Author-WorkPlace-Name: Stata Corporation
Programming-Language: Stata
Abstract: p_vlists is a programmer's command to assist in parsing commands in
 which multiple varlists are specified.
Keywords: programming
Requires: Stata 6.0 
Series: Statistical Software Components
Number: S368302
Creation-Date: 19990201
File-URL: http://www.stata.com/users/wgould/p_vlists
File-Format: text/plain
File-Function: Stata6 'net from' facility (without module name)
Handle: RePEc:boc:bocode:S368302

Template-Type: ReDIF-Software 1.0
Title: DESTRING: Stata module to change string variables to numeric
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Author-Name: William W. Gould
Author-Email: wgould@stata.com
Author-WorkPlace-Name: Stata Corporation
Programming-Language: Stata
Abstract: destring changes string variables to numeric whenever that can be
 done without loss of data. `Numeric' means the most compact numeric data
 type possible. destring, as originally published in STB-37,
  would not accept string variables that were 
 longer than str8 for encoding. This was because encoding in Stata 5.0 used only 
 the first 8 characters of a string, with the resultant problem that, for 
 example, "New York City", "New York State" and "New York Cat Lovers 
 Association" would all end up treated the same way, as equal to "New York", 
 thus losing information. This in turn was because under Stata 5.0 value labels 
 could not be longer than 8 characters. This version, written for Stata 6.0, removes this  
 constraint. This is version 2.1.0 of the software. 
Keywords: data management, string variables 
Series: Statistical Software Components
Requires: Stata 6.0 
Number: S368301
Creation-Date: 19990201
File-URL: http://fmwww.bc.edu/repec/bocode/destring.ado
File-Format: text/plain
File-Size: 166 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/destring.hlp
File-Format: text/plain
File-Size: 80 lines
File-Function: help file
Handle: RePEc:boc:bocode:S368301

Template-Type: ReDIF-Software 1.0
Title: MATODD: Stata modules to produce various matrix tasks
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: These matrix programs will work with either Stata 5.0 or Stata 6.0, with the
 exception of matdelrc, which will run only under Stata 6.0. The programs
 are a suite and some call others.
 matcfa checks that (matrix newmat = argname1 + argname2)
 would execute correctly: that is argname1 and argname2 name matrices
 with the same dimensions. If not, an error message will be issued.
 matcfm checks that (matrix newmat = argname1 * argname2)
 would execute correctly. That is, either both arguments are matrices
 such that the number of columns of argname1 equals the number of rows of
 argname2; or one of the two arguments is a scalar and the other is a
 matrix. If not, an error message will be issued.
 matchk checks that argname names an existing matrix. If not, an error
 message will be issued.
 matcname gives matrix1 the row and column names of matrix2, provided
 that the two matrices have the same dimensions. If not, an error message
 will be issued.
 Given a matrix, matdelrc deletes a specified row, or a specified
 column, or both. matdelrc requires Stata 6.0.
 matdelrc will not delete (i.e. annihilate) entire row vectors or
 entire column vectors.
 Given matrices A and B of the same order, matewd calculates and
 displays matrix C with typical element ( C[i,j] =  A[i,j] / B[i,j] )
 provided that no B[i,j] is equal to 0.
 C may overwrite A or B. A and B may be the same matrix.
 Given matrices A and B of the same order, matewm calculates and
 displays matrix C with typical element ( C[i,j] =  A[i,j] * B[i,j] )
 C may overwrite A or B. A and B may be the same matrix.
 Given matrices A and B of the same order and a user-supplied binary
 operator op, matewop calculates and displays matrix C with typical
 element ( C[i,j] =  A[i,j] op B[i,j] ) provided that no C[i,j] would be
 missing. C may overwrite A or B. A and B may be the same matrix.
 Given a column_vector A and a row vector B and a user-supplied binary
 operator op, matgop calculates and displays the generalized outer
 product: matrix C with typical
 element ( C[i,j] =  A[i,1] op B[1,j] ) provided that no C[i,j] would be
 missing. matmad calculates the maximum absolute deviation (MAD) between
 elements of matrices A and B of the same order.
 matmad is likely to be most useful for checking the convergence of
 iterative matrix calculations within programs.
 matmps calculates the sum of a scalar and a matrix and places it in a
 second matrix. For a scalar x and a matrix A, the second matrix B has
 typical element ( B[i,j] =  x + A[i,j] ), where the order of the arguments is 
 immaterial and matrix2 may overwrite matrix1.
 Given a square matrix A and power p matpow calculates and displays the
 pth power of A. The result is placed in a second matrix.
 mstdizem takes matrix_input and produces matrix_output, which is
 matrix_input scaled such that the row totals are given by
 row_total_vector and the column totals given by column_total_vector.
 psbayes takes data_matrix, which should be a set of frequencies, and
 shrinks or smooths it towards a set of frequencies implied by prior
 probabilities. This will have the effect of replacing sampling
 zeros by positive estimates whenever the priors are positive.
Keywords: matrices, iterative convergence, Bayes smoothing 
Requires: Stata 5.0 (Stata 6.0 for matdelrc)
Series: Statistical Software Components
Number: S366801
Creation-Date: 19990117
File-URL: http://fmwww.bc.edu/repec/bocode/matodd.zip
File-Format: application/bin/zipped
File-Size: 16 Kb
File-Function: archive of program code and help files
File-URL: http://www.stata.com/users/njc/matodd
File-Format: text/plain
File-Function: Stata6 'net from' facility (without module name)
Handle: RePEc:boc:bocode:S367001

Template-Type: ReDIF-Software 1.0
Title: HOTDECK: Stata module to impute missing values using the hotdeck method
Author-Name: David Clayton
Author-Email: david.clayton@mrc-bsu.cam.ac.uk
Author-WorkPlace-Name: MRC Biostatistics Unit
Programming-Language: Stata
Abstract: hotdeck replaces missing values for the variable indicated by its argument. 
 It should be used within a multiple imputation sequence since missing values 
 are imputed stochastically rather than deterministically. The nmiss missing 
 values in each stratum of the data described by the `by' option are replaced 
 by values sampled from the nobs observed values in the same stratum. The 
 approximate Bayesian bootstrap method of Rubin and Scheker is used; first a 
 bootstrap sample of nobs observations is sampled with replacement from the 
 observed values, and the nmiss missing values are sampled at random 
 (again with replacement) from this bootstrap sample. If a file is specified
 in a using clause, the modified file is written to disk and the existing 
 data in memory are unchanged. Otherwise the data in memory are modified.
Keywords: data management, imputation, missing values 
Series: Statistical Software Components
Number: S366901
Creation-Date: 19990118
File-URL: http://fmwww.bc.edu/repec/bocode/hotdeck.ado
File-Format: text/plain
File-Size: 79 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/hotdeck.hlp
File-Format: text/plain
File-Size: 49 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366901

Template-Type: ReDIF-Software 1.0
Title: UNISTAT: Stata module to produce summary statistics in matrix form
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: for each of the c statistics specified by stat( ), unistat calculates and displays 
 (for the r variables in varlist) an r X c matrix containing each
 statistic for each variable. The matrix produced may be saved for future use.
Keywords: summary measures, univariate statistics, matrices 
Series: Statistical Software Components
Number: S366801
Creation-Date: 19990117
File-URL: http://fmwww.bc.edu/repec/bocode/unistat.ado
File-Format: text/plain
File-Size: 135 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/unistat.hlp
File-Format: text/plain
File-Size: 81 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366801

Template-Type: ReDIF-Software 1.0
Title: GLCURVE: Stata module to derive generalised Lorenz curve ordinates 
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Author-Name: Philippe Van Kerm
Author-Email: philippe.vankerm@fundp.ac.be
Author-WorkPlace-Name: University of Namur
Programming-Language: Stata
Abstract: Given variable varname, call it x with c.d.f. F(x), glcurve either draws
 its Generalised Lorenz curve or generates two new variables containing
 the Generalised Lorenz ordinates for x, i.e. GL(p) at each p = F(x) (or both).
 For a population ordered in ascending order of x, a graph of GL(p) against
 p plots the cumulative total of x divided by population size, against
 cumulative population share. GL(1) = mean(x). glcurve can also be used
 to derive many other related concepts such as concentration curves and
 'Three Is of Poverty' (TIP) curves, with appropriate definition of varname,
 order of cumulation (set with sortvar option), and normalisation (e.g. by
 the mean of varname). For example, the 'ordinary' Lorenz curve
 L(p) = GL(p)/mean(x).
Keywords: Lorenz curve, income distribution, inequality
Series: Statistical Software Components
Number: S366302
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/glcurve.ado
File-Format: text/plain
File-Size: 179 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/glcurve.hlp
File-Format: text/plain
File-Size: 122 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366302

Template-Type: ReDIF-Software 1.0
Title: MKBILOGN: Stata module to create bivariate lognormal variables
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Programming-Language: Stata
Abstract: mkbilogn creates random variables, var1 and var2, drawn from a 
 bivariate lognormal distribution defined as follows. As n --> oo,
 X1 (var1) and X2 (var2) are such that x1=log(X1) and x2=log(X2) 
 are bivariate Normal distributed with mean(x1) = m1, mean(x2) = m2, 
 s.d.(x1) = s1, s.d.(x2) = s2, corr(x1,x2) = rho. The parameters of 
 the distribution can be optionally chosen by the user, or default 
 to the values specified above.
Keywords: lognormal distribution, random variables 
Series: Statistical Software Components
Number: S366301
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/mkbilogn.ado
File-Format: text/plain
File-Size: 64 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/mkbilogn.hlp
File-Format: text/plain
File-Size: 55 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366301

Template-Type: ReDIF-Software 1.0
Title: CPYXPLOT: Stata module to produce scatter plots for each y vs each x variable
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: cpyxplot produces an array of scatter or twoway plots for yvarlist
 versus xvarlist. There is one plot for each y variable from yvarlist and
 each x variable from xvarlist. The name cpyxplot is derived from
 Cartesian product of y and x. cp may also be interpreted as `cross
 pairs'. The backslash \ must be used to separate the yvarlist and the
 xvarlist. A neat arrangement of the individual graphs is produced if the
 number of y variables is equal to the number of x variables, or the
 number of y variables is 1, or the number of x variables is 1.
Keywords: graphics, scatter plots
Series: Statistical Software Components
Number: S366201
Creation-Date: 19990114
File-URL: http://fmwww.bc.edu/repec/bocode/cpyxplot.ado
File-Format: text/plain
File-Size: 71 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/cpyxplot.hlp
File-Format: text/plain
File-Size: 67 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366201

Template-Type: ReDIF-Software 1.0
Title: SMFIT: Stata module to fit a Singh-Maddala distribution to unit record data
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: smfit fits by ML the 3 parameter Singh-Maddala (1976) distribution to 
 a distribution of a random variable incvar, where observations are 
 available on incvar for a sample of income units. Otherwise known as 
 the Burr Type 12 distribution, the Singh-Maddala distribution has been 
 shown to provide a good fit to empirical income data relative to other 
 parametric functional forms: see e.g. McDonald (1984). It is closely 
 related to the Dagum (Burr Type 3) distribution (Dagum, 1977,1980). 
 For derivation of Lorenz orderings of pairs of income distributions in 
 terms of their Singh-Maddala parameters, see Wifling and Kraemer (1993) 
 and Kleiber (1996). Of course the Singh-Maddala distribution might
 be suitable for describing any skewed variable, not only income. psm
 (by Nick Cox) produces a probability plot for varname compared with a
 three-parameter Singh-Maddala distribution. The parameters a, b and q
 are taken from S_a, S_b and S_q, which is where smfit puts maximum
 likelihood estimates of them.
Keywords: Singh-Maddala distribution, income distribution
Series: Statistical Software Components
Number: S366102
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/smfit.ado
File-Format: text/plain
File-Size: 257 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/sm_ll.ado
File-Format: text/plain
File-Size: 41 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/smfit.hlp
File-Format: text/plain
File-Size: 136 lines
File-Function: help file
File-URL: http://fmwww.bc.edu/repec/bocode/psm.ado
File-Format: text/plain
File-Size: 47 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/psm.hlp
File-Format: text/plain
File-Size: 43 lines
File-Function: help file
File-URL: http://fmwww.bc.edu/repec/bocode/qsm.ado
File-Format: text/plain
File-Size: 68 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/qsm.hlp
File-Format: text/plain
File-Size: 44 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366102

Template-Type: ReDIF-Software 1.0
Title: DAGUMFIT: Stata module to fit a Dagum distribution to unit record data
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: dagumfit fits by ML the 3 parameter Dagum (1977, 1980) distribution to 
 a distribution of a random variable incvar, where observations are 
 available on incvar for a sample of income units. Otherwise known as 
 the Burr Type 3 distribution, the Dagum distribution has been 
 shown to provide a good fit to empirical income data relative to other 
 parametric functional forms. It is closely related to the Singh-Maddala 
 (Burr Type 12) distribution (Singh and Maddala, 1976). For derivation of
 Lorenz orderings of pairs of income distributions in terms of their Dagum 
 parameters, see Kleiber (1996). Of course the Dagum distribution might
 be suitable for describing any skewed variable, not only income. pdagum 
 (by Nick Cox) produces a probability plot for varname compared with a
 three-parameter Dagum distribution. The parameters b, d and h are taken
 from S_b, S_d and S_h, which is where dagumfit puts maximum likelihood
 estimates of them. qdagum (by Nick Cox) plots the quantiles of varname against the quantiles of a
 three-parameter Dagum distribution. The parameters b, d and h are taken
 from S_b, S_d and S_h, which is where dagumfit puts maximum likelihood
 estimates of them.
Keywords: Dagum distribution, income distribution
Series: Statistical Software Components
Number: S366101
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/dagumfit.ado
File-Format: text/plain
File-Size: 292 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/dagum_ll.ado
File-Format: text/plain
File-Size: 44 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/dagumfit.hlp
File-Format: text/plain
File-Size: 132 lines
File-Function: help file
File-URL: http://fmwww.bc.edu/repec/bocode/pdagum.ado
File-Format: text/plain
File-Size: 47 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/pdagum.hlp
File-Format: text/plain
File-Size: 43 lines
File-Function: help file
File-URL: http://fmwww.bc.edu/repec/bocode/qdagum.ado
File-Format: text/plain
File-Size: 68 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/qdagum.hlp
File-Format: text/plain
File-Size: 44 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366101

Template-Type: ReDIF-Software 1.0
Title: XFRAC: Stata module to produce tabulation using categories defined by 
 fractions of a cut-off value
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Programming-Language: Stata
Abstract: xfrac provides a specialized tabulation (a 'wrapper' for -tabulate-).
 Each valid observation is first partitioned by varname into one of a set
 of 20 mutually-exclusive categories, the boundaries of which are defined 
 by 'hard-wired' fractions of a user-specified cut-off value (in the same
 units as varname), with fractions ranging from 0.1 through to 3.0. This 
 classification is then tabulated and, optionally, can be retained 
 as a new variable.
 In effect xfrac provides a discrete representation of the distribution 
 function for varname.
 Example: let varname be a measure of income and the cut-off be mean
 income. xfrac shows the proportion of observations with income
 less than 10% of mean income, between 10% and 20% of mean income, 
 between 20% and 30% of mean income, and so on (20 categories). 
 Cumulative proportions are also shown.
Keywords: inequality, tabulation, descriptive statistics, income distribution
Series: Statistical Software Components
Number: S366006
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/xfrac.ado
File-Format: text/plain
File-Size: 135 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/xfrac.hlp
File-Format: text/plain
File-Size: 57 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366006

Template-Type: ReDIF-Software 1.0
Title: SUMDIST: Stata module to calculate summary statistics for income distributions
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Programming-Language: Stata
Abstract: sumdist estimates distributional summary statistics commonly used
 by income distribution analysts, complementing those available via
 pctile, xtile, and summarize, detail.  
 For variable x and distribution function F(x), the statistics are 
 (1) quantiles k = 1,2,...,m-1, for m = # quantile groups; 
 (2) the quantiles expressed as a percentage of median(x);
 (3) the quantile group share of x in total x (group income share, %); 
 (4) the cumulative quantile group shares of total x (with 
    cumulation in ascending order of x), i.e. the Lorenz ordinates 
    L(p) at each p_k = F(x_k) for quantile points x_k; and 
 (5) the generalised Lorenz ordinates at each p_k = F(x_k), i.e.
     GL(p_k) = mean(x)*L(p_k).
Keywords: inequality, Lorenz curve, income distribution
Series: Statistical Software Components
Number: S366005
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/sumdist.ado
File-Format: text/plain
File-Size: 106 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/sumdist.hlp
File-Format: text/plain
File-Size: 56 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366005

Template-Type: ReDIF-Software 1.0
Title: POVDECO: Stata module to calculate poverty indices with decomposition by subgroup
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Programming-Language: Stata
Abstract: povdeco estimates three poverty indices from the Foster, Greer and
 Thorbecke (1984) class, FGT(a), plus related statistics (such as mean
 income amongst the poor). FGT(0) is the headcount ratio (the proportion
 poor); FGT(1) is the average normalised poverty gap; FGT(2) is the
 average squared normalised poverty gap. The larger a is, the greater the
 degree of 'poverty aversion' (sensitivity to large poverty gaps).
 Optionally provided are decompositions of these indices by population
 subgroup. Poverty decompositions by subgroup are useful for providing
 poverty 'profiles' at a point in time, and for analyzing secular trends
 in poverty using shift-share analysis. Unit record ('micro' level) data
 are required. 
Keywords: inequality, poverty, income distribution
Series: Statistical Software Components
Number: S366004
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/povdeco.ado
File-Format: text/plain
File-Size: 223 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/povdeco.hlp
File-Format: text/plain
File-Size: 113 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366004

Template-Type: ReDIF-Software 1.0
Title: INEQFAC: Stata module to calculate inequality decomposition by factor components
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Programming-Language: Stata
Abstract: ineqfac provides an exact decomposition of the inequality of total
 income into inequality contributions from each of the factor components
 of total income. ineqfac was designed as a tool for income distribution analysis in the case
 where the current sample contains observations on income components for each 
 of a set of income receiving units (e.g. families, households, persons).  
 In this case, facvars might include labour income, income from investments 
 and pensions, cash transfers, etc. See Shorrocks (1982b) and Jenkins (1995) 
 for examples. ineqfac may also be applied to summarise and compare the 
 riskiness of portfolios of wealth holdings: s_f, the
 "proportionate contribution of factor f to total inequality",
  has exactly the same form as 
 the "beta coefficient" used in finance analysis.
Keywords: inequality, factor analysis, decomposition
Series: Statistical Software Components
Number: S366003
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/ineqfac.ado
File-Format: text/plain
File-Size: 135 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/ineqfac.hlp
File-Format: text/plain
File-Size: 104 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366003

Template-Type: ReDIF-Software 1.0
Title: INEQDECO: Stata module to calculate inequality indices with decomposition by subgroup
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Programming-Language: Stata
Abstract: ineqdeco estimates a range of inequality and related indices commonly 
 used by economists, plus decompositions of a subset of these indices by 
 population subgroup.  Inequality decompositions by subgroup are useful 
 for providing inequality 'profiles' at a point in time, and for analyzing 
 secular trends using shift-share analysis. Unit record ('micro' level) data 
 are required.
 Inequality indices estimated are: members of the single parameter
 Generalized Entropy class GE(a) for a = -1, 0, 1, 2; the Atkinson class
 A(e) for e = 0.5, 1, 2; the Gini coefficient, and the percentile ratios
 p90/p10 and p75/p25. Also presented are related summary statistics such as
 subgroup means and population shares. Optionally presented are indices 
 related to the Atkinson inequality indices, viz equally-distributed-
 equivalent income Yede(e), social welfare indices W(e), and the Sen 
 welfare index. 
 The inequality indices differ in their sensitivities to income differences
 in different parts of the distribution. The more positive a is, the more
 sensitive GE(a) is to income differences at the top of the distribution; 
 the more negative a is, the more sensitive it is to differences at the 
 bottom of the distribution. GE(0) is the mean logarithmic deviation, 
 GE(1) is the Theil index, and GE(2) is half the square of the coefficient 
 of variation. The more positive e>0 (the 'inequality aversion parameter')
 is, the more sensitive A(e) is to income differences at the bottom of
 the distribution. The Gini coefficient is most sensitive to income
 differences about the middle (more precisely, the mode). 
Keywords: inequality, social welfare, descriptive statistics
Series: Statistical Software Components
Number: S366002
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/ineqdeco.ado
File-Format: text/plain
File-Size: 371 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/ineqdeco.hlp
File-Format: text/plain
File-Size: 197 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366002

Template-Type: ReDIF-Software 1.0
Title: INEQDEC0: Stata module to calculate inequality indices with decomposition by subgroup
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Programming-Language: Stata
Abstract: ineqdec0 is a stripped-down version of ineqdeco (q.v.). Unlike the latter,
 it will provide estimates using samples containing zero or negative
 values for varname.  But as a result the portfolio of indices estimated
 is reduced to the p90:p10 ratio, GE(2) = half the squared coefficient of 
 variation, and the Gini coefficient, and Sen's welfare index. (The 
 other indices estimated by ineqdeco are not defined for zero and negative 
 values of varname.)
Keywords: inequality, social welfare, descriptive statistics
Series: Statistical Software Components
Number: S366007
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/ineqdec0.ado
File-Format: text/plain
File-Size: 227 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/ineqdec0.hlp
File-Format: text/plain
File-Size: 45 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366007

Template-Type: ReDIF-Software 1.0
Title: GEIVARS: Stata module to calculate Generalized Entropy inequality indices
Author-Name: Stephen P. Jenkins
Author-Email: stephenj@essex.ac.uk
Author-WorkPlace-Name: University of Essex
Programming-Language: Stata
Abstract: geivars estimates several inequality indices commonly 
 used by economists, together with their asymptotic sampling
 variances. Unit record ('micro' level) data are required.
 The inequality indices estimated are members of the single parameter
 Generalized Entropy class GE(a) for a = -1, 0, 1, 2. The indices 
 differ in their sensitivities to differences in different parts 
 of the distribution. The more positive a is, the more sensitive 
 GE(a) is to income differences at the top of the distribution; the 
 more negative a is the more sensitive it is to differences at the 
 bottom of the distribution. GE(0) is the mean logarithmic deviation, 
 GE(1) is the Theil index, and GE(2) is half the square of the 
 coefficient of variation. 
Keywords: inequality, diversity, descriptive statistics
Series: Statistical Software Components
Number: S366001
Creation-Date: 19990112
File-URL: http://fmwww.bc.edu/repec/bocode/geivars.ado
File-Format: text/plain
File-Size: 291 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/geivars.hlp
File-Format: text/plain
File-Size: 77 lines
File-Function: help file
Handle: RePEc:boc:bocode:S366001

Template-Type: ReDIF-Software 1.0
Title: DISSIM: Stata module to calculate dissimilarity index
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: dissim displays the dissimilarity index D for each pair of variables
 in varlist. If x and y are >= 0, form the proportions
   p = x / SUM x   and   q = y / SUM y
 and calculate D = 1/2 SUM ( | p - q | ). D lies in [0, 1].
Keywords: dissimilarity index, segregation, descriptive statistics
Series: Statistical Software Components
Number: S365901
Creation-Date: 19990108
File-URL: http://fmwww.bc.edu/repec/bocode/dissim.ado
File-Format: text/plain
File-Size: 50 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/dissim.hlp
File-Format: text/plain
File-Size: 39 lines
File-Function: help file
Handle: RePEc:boc:bocode:S365901

Template-Type: ReDIF-Software 1.0
Title: INEQ: Stata module to calculate measures of inequality
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: ineq treats its input as an additive variable (that is, it is assumed that totals
 make sense and that no negative values are present in the data specified)
 and calculates three measures of inequality. Given n values of y, scale to 
 proportions p = y / SUM y. Then Simpson's index is SUM p^2. Shannon entropy is 
 -SUM p ln p = SUM p ln 1/p. The dissimilarity index is (1 / 2) SUM | p - 1 / n |. 
 These measures are known under a variety of names, and a variety of
 related guises, in different fields.
Keywords: inequality, entropy, dissimilarity, diversity, segregation 
Series: Statistical Software Components
Number: S365801
Creation-Date: 19990108
File-URL: http://fmwww.bc.edu/repec/bocode/ineq.ado
File-Format: text/plain
File-Size: 87 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/ineq.hlp
File-Format: text/plain
File-Size: 73 lines
File-Function: help file
Handle: RePEc:boc:bocode:S365801

Template-Type: ReDIF-Software 1.0
Title: POVERTY: Stata module to calculate poverty measures
Author-Name: Philippe Van Kerm
Author-Email: philippe.vankerm@fundp.ac.be
Author-WorkPlace-Name: University of Namur
Programming-Language: Stata
Abstract: poverty computes a series of poverty measures based on the (income)
 distribution described by varname.
 The poverty measures that can be computed by poverty are: 
 headcount ratio,     aggregate poverty gap,    poverty gap ratio,
 income gap ratio,    Watts index,              Sen index,
 Takayama index,      Thon index, 
 and three indices( Foster, Greer and Thorbecke; Clark et al.; and Kakwani)
 for various parameter values. 
 The poverty line is either directly specified by the user or computed relative
 to the median of varname. This is version 2.0.0 of the software.
Keywords: inequality, income distribution, poverty
Series: Statistical Software Components
Number: S365703
Creation-Date: 19990107
File-URL: http://fmwww.bc.edu/repec/bocode/poverty.ado
File-Format: text/plain
File-Size: 270 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/poverty.hlp
File-Format: text/plain
File-Size: 126 lines
File-Function: help file
Handle: RePEc:boc:bocode:S365703

Template-Type: ReDIF-Software 1.0
Title: STUDYSI: Stata module to calculates sample size and power 
 for comparative studies
Author-Name: Abdel G. Babiker
Author-Email: A.Babiker@ctu.mrc.ac.uk
Author-WorkPlace-Name: University College London Medical School
Programming-Language: Stata
Abstract: studysi calculates sample size and power for comparative studies with either
 binary or time-to-event outcome.
Keywords: sampling, logrank
Series: Statistical Software Components
Number: S365702
Creation-Date: 19990107
File-URL: http://fmwww.bc.edu/repec/bocode/studysi.ado
File-Format: text/plain
File-Size: 1316 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/studysi.hlp
File-Format: text/plain
File-Size: 197 lines
File-Function: help file
Handle: RePEc:boc:bocode:S365702

Template-Type: ReDIF-Software 1.0
Title: SSIZEBI: Stata module to calculate sample size and power 
 for the comparison of two or more proportions
Author-Name: Abdel G. Babiker
Author-Email: A.Babiker@ctu.mrc.ac.uk
Author-WorkPlace-Name: University College London Medical School
Programming-Language: Stata
Abstract: ssizebi estimates power or total sample size for tests comparing K
 proportions. Power is calculated if n() is specified as a positive number,
 otherwise total sample size is estimated. 
 ssizebi computes sample size/power for the (global/trend) unconditional
 chisquare test or the conditional test based on the hypergeometric distribution
 with the one-step Peto approximation to the odds ratio (OR). Sample size/power
 is calculated in the unconditional case under either local or distant
 alternatives. Under local alternatives (eg max(OR,1/OR)<=2), ssizebi uses the
 null covariance matrix under both null and alternative hypotheses. The
 unconditional test with local alternatives is the usual Pearson chisquare test.
 Local alternatives are assumed in the conditional case.
Keywords: sampling, proportions, power of test
Series: Statistical Software Components
Number: S365701
Creation-Date: 19990107
File-URL: http://fmwww.bc.edu/repec/bocode/ssizebi.ado
File-Format: text/plain
File-Size: 382 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/ssizebi.hlp
File-Format: text/plain
File-Size: 85 lines
File-Function: help file
Handle: RePEc:boc:bocode:S365701

Template-Type: ReDIF-Software 1.0
Title: DIAGTEST: Stata module to report summary statistics for diagnostic test
Author-Name: Aurelio Tobias
Author-Email: bledatobias@ctv.es
Programming-Language: Stata
Abstract: diagtest displays various summary statistics for diagnostic tests: 
 sensitivity, specificity, and predictive values, from a 2x2 table. 
Keywords: tabulation, sensitivity
Series: Statistical Software Components
Number: S365601
Creation-Date: 19990106
File-URL: http://fmwww.bc.edu/repec/bocode/diagtest.ado
File-Format: text/plain
File-Size: 84 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/diagtest.hlp
File-Format: text/plain
File-Size: 72 lines
File-Function: help file
Handle: RePEc:boc:bocode:S365601

Template-Type: ReDIF-Software 1.0
Title: TSPLOT: Stata module to produce a time series plot
Author-Name: Aurelio Tobias
Author-Email: bledatobias@ctv.es
Programming-Language: Stata
Abstract: tsplot generates a time series plot.
Keywords: graphics, time series
Series: Statistical Software Components
Number: S365602
Creation-Date: 19990106
File-URL: http://fmwww.bc.edu/repec/bocode/tsplot.ado
File-Format: text/plain
File-Size: 29 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/tsplot.hlp
File-Format: text/plain
File-Size: 51 lines
File-Function: help file
Handle: RePEc:boc:bocode:S365602

Template-Type: ReDIF-Software 1.0
Title: VARCASE: Stata module to toggle the case of variable names
Author-Name: John R. Gleason
Author-Email: loesljrg@ican.net
Author-WorkPlace-Name: Syracuse University
Programming-Language: Stata
Abstract: varcase toggles the case of variable names, from upper to lower or
 from lower to upper, whichever is appropriate. It checks to see
 whether toggling the case will create an unused variable name, and handles
 such conflicts gracefully.
Keywords: string handling
Series: Statistical Software Components
Number: S365501
Creation-Date: 19990105
File-URL: http://fmwww.bc.edu/repec/bocode/varcase.ado
File-Format: text/plain
File-Size: 30 lines
File-Function: program code
Handle: RePEc:boc:bocode:S365501

Template-Type: ReDIF-Software 1.0
Title: TRYEM: Stata module to run all possible subset regressions
Author-Name: Al Feiveson
Author-Email: alan.h.feiveson1@jsc.nasa.gov
Author-WorkPlace-Name: Johnson Spaceflight Center
Programming-Language: Stata
Abstract: tryem calculates all possible
 regressions of a given subset size. The module mktime is required.
Keywords: regression, subsample analysis, structural stability
Series: Statistical Software Components
Number: S364201
Creation-Date: 19981217
File-URL: http://fmwww.bc.edu/repec/bocode/tryem.ado
File-Format: text/plain
File-Size: 57 lines
File-Function: program code
File-URL: http://fmwww.bc.edu/repec/bocode/mktime.ado
File-Format: text/plain
File-Size: 48 lines
File-Function: program code
Handle: RePEc:boc:bocode:S364201


Template-Type: ReDIF-Software 1.0
Title: CIRCSTAT: Stata modules to calculate circular statistics
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: circstat.zip contains some Stata programs for circular statistics. Circular 
 data are here compass or other directions, usually measured in degrees from 
 North or some other reference direction. The fact that 0 degrees and 360 
 degrees are identical, so that for example 180 degrees is not a sensible mean 
 of 1 deg and 359 deg, provides one illustration that some special statistical 
 methods are required for analysis of circular data. There are 15 programs, each 
 with its own help file, together with a overall help file circstat.  
 New features, January 1999: circsumm has been extended to include a confidence 
 interval option. circksm has been renamed circxsm. There is a new circysm. A 
 bug has been corrected in circdplt and circrplt. circsumm has an extra option. 
 There is a new circcomp. 
 circhist with the histplot option depends on previous installation of 
 histplot, barplot and genfreq, all posted on this list. 
 circysm depends on _gatan2, ditto.
Keywords: circular data, directional data, graphics, correlation, nonparametric 
 tests
Series: Statistical Software Components
Number: S362501
Creation-Date: 19981218
File-URL: http://fmwww.bc.edu/repec/bocode/circstat.zip
File-Format: application/bin/zipped
File-Size: 33 Kb
File-Function: program archive
Handle: RePEc:boc:bocode:S362501

Template-Type: ReDIF-Software 1.0
Title: GATAN2: Stata module to compute arctangent of two arguments 
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: the _gatan2 program is written for egen. The syntax is 
 egen newvar = atan2(sinevar cosvar) [if exp] [in range] [, radians] 
 and the program returns the arctangent of sinevar/cosvar as an angle between 0 
 and 360 degrees (or 0 and 2 pi radians with the radians option). 
Keywords: arctangent, egen, functions
Series: Statistical Software Components
Number: S362502
Creation-Date: 19981217
File-URL: http://fmwww.bc.edu/repec/bocode/_gatan2.ado
File-Format: text/plain
File-Size: 33 lines
File-Function: program code
Handle: RePEc:boc:bocode:S362502

Template-Type: ReDIF-Software 1.0
Title: TOMODE: Stata module to change values of a variable to mode(s)
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Author-Name: Fred Wolfe
Author-WorkPlace-Name: Arthritis Research Center, Wichita, Kansas
Programming-Language: Stata
Abstract: tomode generates a new variable in which values of varname are changed
 to equal the mode, or replaces varname in this way. Alternatively, tomode
 may be regarded as a way of storing modes, defined for all or some of the 
 observations of varname or by groups of observations of varname.
 varname may be numeric or string.
Keywords: descriptive statistics, data transformations
Series: Statistical Software Components
Number: S362601
Creation-Date: 19981212
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/tomode.ado
File-Format: text/plain
File-Size: 84 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/tomode.hlp
File-Format: text/plain
File-Size: 84 lines
File-Function: help file
Handle: RePEc:boc:bocode:S362601

Template-Type: ReDIF-Software 1.0
Title: IRREPRO: Stata module to produce a simulation of irreproducible results
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: Imagine an urn containing w white and b black balls, together with
 inexhaustible supplies of white and black balls. Pick one ball from the
 urn randomly, and replace it in the urn, together with a additional
 balls of the same colour. Repeat indefinitely. What happens to (say) the
 proportion of white balls in the urn? Experiment indicates, and analysis 
 confirms, that in any particular experiment the proportion stabilises rapidly, 
 but on an unrepeatable value. A set of experiments approximates a distribution 
 of limiting proportions that is beta over the whole range from 0 to 1 (uniform 
 if b = w = a = 1). irrepro runs the experiment once and plots proportion white 
 against number of picks. irrepron runs the experiment for as many times as 
 there are observations. Under Windows, the effect is a movie with as many 
 frames as there are observations.
Keywords: stochastic processes, urn models, simulation, fun
Requires: distplot.ado
Series: Statistical Software Components
Number: S362401
Creation-Date: 19981203
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/irrepro.ado
File-Format: text/plain
File-Size: 36 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/irrepro.hlp
File-Format: text/plain
File-Size: 99 lines
File-Function: help file
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/irrepron.ado
File-Format: text/plain
File-Size: 29 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/irrepron.hlp
File-Format: text/plain
File-Size: 1 line
File-Function: help file
Handle: RePEc:boc:bocode:S362401

Template-Type: ReDIF-Software 1.0
Title: MUXPLOT: Stata module to produce scatter plots with y versus multiple x variables
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: muxplot produces a scatter or twoway plot for one yvar versus two or
 more xvars, all of which xvars are measured on comparable scales. For
 example, depth or height may be shown on the vertical axis and two or
 more responses on the horizontal axis. (Originally called mulxplot: revised to 
 be more consistent with muxyplot and to add extra option.) This is version 1.1.1 of the software.
Keywords: graphics, scatter plots
Series: Statistical Software Components
Number: S362302
Creation-Date: 19981201
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/muxplot.ado
File-Format: text/plain
File-Size: 81 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/muxplot.hlp
File-Format: text/plain
File-Size: 81 lines
File-Function: help file
Handle: RePEc:boc:bocode:S362302

Template-Type: ReDIF-Software 1.0
Title: MUXYPLOT: Stata module to produce scatter plots with multiple x and y variables
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: muxyplot produces a scatter or twoway plot for yvars versus xvars,
 all of which xvars are measured on comparable scales. The number of
 yvars must equal the number of xvars. For example, muxyplot y1 y2 y3 x1 x2 x3
 plots y1 versus x1, y2 versus x2 and y3 versus x3, all on the same
 scatter plot. This is version 1.1.1 of the software.
Keywords: graphics, scatter plots, twoway plots
Series: Statistical Software Components
Number: S362301
Creation-Date: 19981130
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/muxyplot.ado
File-Format: text/plain
File-Size: 89 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/muxyplot.hlp
File-Format: text/plain
File-Size: 85 lines
File-Function: help file
Handle: RePEc:boc:bocode:S362301

Template-Type: ReDIF-Software 1.0
Title: GRMED: Stata module to compute row medians
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: _grmed is a program to use with egen. egen newvar = rmed(varlist) puts in 
 newvar the median of the values of varlist, taken across each observation (each 
 row of the data). if and in restrictions are allowed. The number of variables 
 in varlist must not exceed the number of observations. 
Keywords: median, egen, data summary
Series: Statistical Software Components
Number: S362101
Creation-Date: 19981126
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/_grmed.ado
File-Format: text/plain
File-Size: 40 lines
File-Function: program code
Handle: RePEc:boc:bocode:S362101

Template-Type: ReDIF-Software 1.0
Title: CHAOS: Stata module to iterate a logistic difference equation
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: chaos iterates, for 0 < r < 4 and t = 1, 2, 3, ..., x[t+1] = r * x[t] * 
 (1 - x[t]), starting with x[1] as a random number from the uniform distribution 
 on [0,1). chaos presents the user with graphs of x[t] versus t and of x[t+1] 
 versus x[t].  
Keywords: chaos, dynamical systems, fun
Series: Statistical Software Components
Number: S361503
Creation-Date: 19981125
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/chaos.ado
File-Format: text/plain
File-Size: 82 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/chaos.hlp
File-Format: text/plain
File-Size: 71 lines
File-Function: help file
Handle: RePEc:boc:bocode:S361503

Template-Type: ReDIF-Software 1.0
Title: VENNDIAG: Stata module to generate Venn diagrams
Author-Name: Jens M.Lauritsen
Author-Email: jml@dadlnet.dk
Author-WorkPlace-Name:  County of Fyn, Odense Denmark
Programming-Language: Stata
Abstract: venndiag produces a so-called Venn diagram of the variables in varlist.
 The Venn diagram consists of a number of rectangles each corresponding
 to one of the variables in varlist. The rectangles are arranged such that
 they overlap and delimit areas. In each area the counts of records is 
 shown for the relevant combination of varlist. This is version 1.01 of the software.
Series: Statistical Software Components
Number: S361502
Creation-Date: 19981124
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/venndiag.ado
File-Format: text/plain
File-Size: 875 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/venndiag.hlp
File-Format: text/plain
File-Size: 130 lines
File-Function: help file
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/venntest.do
File-Format: text/plain
File-Size: 129 lines
File-Function: sample run
File-URL: http://fmwww.bc.edu/repec/bocode/venndiag.pdf
File-Format: application/pdf
File-Size: 128 Kb
File-Function: program documentation 
Handle: RePEc:boc:bocode:S361502

Template-Type: ReDIF-Software 1.0
Title: TORATS: Stata module to facilitate transfer of data to RATS
Author-Name: Christopher F. Baum
Author-Email: baum@bc.edu
Author-WorkPlace-Name: Boston College
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: The RATS econometric package (www.estima.com) handles only numeric data. To facilitate the transfer
 of large datasets in Stata format to RATS, this module -- invoked by torats,file(foo), and cloned from the Stata ds command --
 will create two files, foo.rat and foo.raw, containing the RATS program to read the data, and the data,
 respectively. By default, the entire contents of the dataset in memory will be placed in the .raw file, except for 
 string variables, which cannot be read by RATS. The outfile, nolab option is used to write the numeric
 values rather than variable labels. An optional varlist is supported, as are if and in options. 
Series: Statistical Software Components
Number: S361501
Creation-Date: 19981124
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/torats.ado
File-Format: text/plain
File-Size: 52 lines
File-Function: program code
Handle: RePEc:boc:bocode:S361501

Template-Type: ReDIF-Software 1.0
Title: BYS: Stata module to automatically sort on the bylist
Author-Name: Jeroen Weesie
Author-Email: socw23@Weesie.fsw.ruu.nl
Programming-Language: Stata
Abstract: the bys command is very similar to by varlist: command but automatically sorts
 on the variables in varlist. 
 If a second varlist, varlist2, is specified between parentheses, bys will
 sort the data on varlist2 within varlist. This may be required for some more 
 complicated commands, in particular to generate variables within subgroups. 
 If the data are already sorted on varlist and further variables, 
 the sort order is not changed. The command may not contain quotes (").
Keywords: sorting, data transformation
Series: Statistical Software Components
Number: S361403
Creation-Date: 19981118
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/bys.ado
File-Format: text/plain
File-Size: 31 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/bys.hlp
File-Format: text/plain
File-Size: 70 lines
File-Function: help file
Handle: RePEc:boc:bocode:S361403

Template-Type: ReDIF-Software 1.0
Title: WINSOR: Stata module to Winsorize a variable
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: winsor takes the non-missing values of a variable and generates a new variable  
 identical except that the h highest and h lowest values are replaced by the 
 next value counting inwards from the extremes. h can be specified directly or 
 indirectly by specifying a fraction p of the number of observations: h = 
 [p n]. This transformation is named after the biostatistician C.P. Winsor. This is version 1.1.0 of 
 the software.
Keywords: Winsorize, robustness, resistance, transformations
Series: Statistical Software Components
Number: S361402
Creation-Date: 19981118
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/winsor.ado
File-Format: text/plain
File-Size: 82 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/winsor.hlp
File-Format: text/plain
File-Size: 71 lines
File-Function: help file
Handle: RePEc:boc:bocode:S361402

Template-Type: ReDIF-Software 1.0
Title: MEDIAN: Stata module to perform the median test
Author-Name: Mario Cleves
Author-Email: mcleves@stata.com
Author-WorkPlace-Name: Stata Corporation
Author-WorkPlace-Postal: Stata Corporation, 702 University Drive East, College Station, Texas 77840 USA
Programming-Language: Stata
Abstract: median.ado that will perform the median test with or without continuity correction. 
 The syntax is:  median varname [if] [in], by(groupname) [cc] where the option cc is used to specify that the continuity correction be used in
 calculating the chi-squared test statistic. If cc is not specified, it will perform a chi-squared test without the
 continuity correction and will also provide a Fisher's exact test for sparse
 tables.
Series: Statistical Software Components
Number: S361401
Creation-Date: 19981118
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/median.ado
File-Format: text/plain
File-Size: 68 lines
File-Function: program code
Handle: RePEc:boc:bocode:S361401

Template-Type: ReDIF-Software 1.0
Title: CONFSVY: Stata module to assess confounding effects in survey studies 
Author-Name:  Zhiqiang Wang
Author-Email: wang@menzies.su.edu.au
Author-WorkPlace-Name: Menzies School of Health Research
Programming-Language: Stata
Abstract: confsvy calculates the change in effect estimates such as odds ratio, 
 after adjusting for a potential confounder using either "forward 
 selection" or "backward deletion" strategies. 
 confsvy also calculates and graphs adjusted effect measures and 
 their confidence intervals. The order of variables being selected is 
 based on the "importance" (magnitude) of "change in estimate". 
Keywords: survey analysis, stepwise methods, confounding effects
Series: Statistical Software Components
Number: S361101
Creation-Date: 19981113
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/confsvy.ado
File-Format: text/plain
File-Size: 421 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/confsvy.hlp
File-Format: text/plain
File-Size: 59 lines
File-Function: help file
Handle: RePEc:boc:bocode:S361101

Template-Type: ReDIF-Software 1.0
Title: COLELMS: Stata module to calculate Cole's LMS values for growth data 
Author-Name:  Zhiqiang Wang
Author-Email: wang@menzies.su.edu.au
Author-WorkPlace-Name: Menzies School of Health Research
Author-Name: 	Mark S Pearce
Author-WorkPlace-Name: University of Newcastle upon Tyne
Author-Email: m.s.pearce@newcastle.ac.uk
Programming-Language: Stata
Abstract: colelms calculates LMS values, 
 smoothed LMS, and growth reference centiles based in smoothed LMS values.
 I set df=4 when calculating smoothed LMS values. You are
 responsible for setting an appropriate df for your data.  This is version 0.2
 of the software.
Series: Statistical Software Components
Number: S360702
Creation-Date: 19981111
Requires: gam.ado from stb-42
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/colelms.ado
File-Format: text/plain
File-Size: 83 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/colelms.hlp
File-Format: text/plain
File-Size: 41 lines
File-Function: help file
Handle: RePEc:boc:bocode:S360702

Template-Type: ReDIF-Software 1.0
Title: DEATON: Stata modules to analyze household surveys
Author-Name: Angus Deaton
Author-WorkPlace-Name: World Bank
Programming-Language: Stata
Abstract: Deaton.zip contains the STATA code used to produce the results in "The Analysis of
                        Household Surveys: A Microeconometric Approach to Development Policy", by
                        Angus Deaton. This book, published for the World Bank by The Johns Hopkins
                        University Press, 1997, is about the analysis of household
                        survey data from developing countries and about how such data can be used to cast
                        light on a range of policy issues. Data from several different developing countries are
                        used for illustration and one of the aims of the book is to bring together the relevant
                        statistical and economic methods that are useful for building the bridge between data
                        and policy. These programs are not intended to be self-contained; they cannot be run as they stand without modification and, at
 the very least, the addition of the user's own dataset. The idea is not to supply a software package that will replicate
 the analyses in the text, but to provide the code to serve as a template for the user's own analysis. In order to understand
                        and use the selected programs here, and have access to the full set of programs, you
                        will need a copy of the book.
Keywords: survey analysis
Series: Statistical Software Components
Number: S360701
Creation-Date: 19981111
File-URL: http://www.worldbank.org/html/prdph/lsms/tools/deaton/deaton.zip
File-Format: application/bin/zipped
File-Size: 27 Kb
File-Function: program archive
Handle: RePEc:boc:bocode:S360701

Template-Type: ReDIF-Software 1.0
Title: SherlockIDEAS: MacOS module to implement Sherlock searches of IDEAS
Author-Name: Christopher F. Baum
Author-Email: baum@bc.edu
Author-WorkPlace-Name: Boston College
Programming-Language: perl
Abstract: Sherlock is a component of Mac OS 8.5 for PPC that permits a very rapid search
 using Internet search engines for keywords of interest, without the overhead of a 
 graphical web browser. Sherlock is extensible to any 
 Internet search engine via a simple syntax, described in Apple's TechNote 1141. 
 The enclosed plug-ins provide a search of the IDEAS archive, which contains working papers 
 in economics and statistical software components. They must be placed in the 
 Internet Search Sites folder of the System Folder. Sherlock will then offer them
 as available search tools.
Keywords: search engines, MacOS
Series: Statistical Software Components
Number: A8B1001
Requires: Mac OS 8.5, PowerPC
Creation-Date: 19981106
File-URL: ftp://ftp.bc.edu/pub/user/baum/MacOS/SherlockIDEAS.sea.hqx
File-Format: application/bin
File-Size: 14 Kb
File-Function: self expanding archive
File-URL: ftp://fmwww.bc.edu/AppleUpdates/SherlockIDEAS.sea.hqx
File-Format: application/bin
File-Size: 14 Kb
File-Function: self expanding archive
Handle: RePEc:boc:bocode:A8B1001

Template-Type: ReDIF-Software 1.0
Title: LSTACK: Stata module to stack variables with labelled _stack
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: lstack is a wrapper for stack, applicable only if many variables are being 
 stacked into one. The new variable _stack has value labels indicating the 
 original variables. Syntax is otherwise identical to that of stack. 
Keywords: data management, stacking, labels
Series: Statistical Software Components
Number: S360201
Creation-Date: 19981106
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/lstack.ado
File-Format: text/plain
File-Size: 35 lines
File-Function: program code
Handle: RePEc:boc:bocode:S360201

Template-Type: ReDIF-Software 1.0
Title: EPICONF: Stata module to assess confounding effects in epidemiological studies 
Author-Name:  Zhiqiang Wang
Author-Email: wang@menzies.su.edu.au
Author-WorkPlace-Name: Menzies School of Health Research
Programming-Language: Stata
Abstract: epiconf calculates the change in effect estimates such as odds ratio, 
 rate ratio, or hazard ratio after adjusting for a potential confounder 
 using either "forward selection" or "backward deletion" strategies. 
 epiconf also calculates and graphs adjusted effect measures and 
 their confidence intervals. The order of variables being selected is 
 based on the "importance" (magnitude) of "change in estimate". This is version 1.1 of the software.
Keywords: stepwise methods, confounding effects
Series: Statistical Software Components
Number: S359801
Creation-Date: 19981102
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/epiconf.ado
File-Format: text/plain
File-Size: 536 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/epiconf.hlp
File-Format: text/plain
File-Size: 85 lines
File-Function: help file
Handle: RePEc:boc:bocode:S359801

Template-Type: ReDIF-Software 1.0
Title: MODES: Stata module to calculate modes
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: modes shows the mode(s) of varname, that is, the value(s) of varname
 that occur most frequently. varname may be numeric or string. fweights and aweights are allowed.
 modes is most obviously useful with a discrete or categorical variable.
 Continuous variables may need to be placed in bins or classes first. This is 
 version 1.1.2 of the software.
Keywords: modes, descriptive statistics
Series: Statistical Software Components
Number: S359101
Creation-Date: 19981028
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/modes.ado
File-Format: text/plain
File-Size: 38 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/modes.hlp
File-Format: text/plain
File-Size: 49 lines
File-Function: help file
Handle: RePEc:boc:bocode:S359101

Template-Type: ReDIF-Software 1.0
Title: T2WAY5: Stata module to perform Tukey's Two-Way Analysis by Medians
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: t2way5 uses Tukey's low-median polish technique to fit a two-way table
 by medians. t2way5 can produce both a tabular report and a graph.  Without
 options, it produces only the tabular report.
 t2way5 is a translation to Stata 5.0 syntax and conventions of
 t2way, issued on a Stata Support Disk in November 1990. 
Keywords: median polish, resistant models, exploratory data analysis, two-way tables
Series: Statistical Software Components
Number: S359001
Creation-Date: 19981027
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/t2way5.ado
File-Format: text/plain
File-Size: 153 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/t2way5.hlp
File-Format: text/plain
File-Size: 62 lines
File-Function: help file
Handle: RePEc:boc:bocode:S359001

Template-Type: ReDIF-Software 1.0
Title: FULLTAB: Stata module to generate 'full tables' which can be stacked into matrices
Author-Name: Guy D. van Melle 
Author-Email:  guy.van-melle@inst.hospvd.ch
Author-WorkPlace-Name: University of Lausanne
Programming-Language: Stata
Abstract: Suppose you want to tabulate a set of variables, say v1 to v15, each of which
 can take on the same possible values (e.g. 1,2,3,4,5) and stack the resulting 
 frequencies into a matrix using the matcell option of @tabulate@.
 A problem appears when one value, say "5", has count 0 (i.e. never appears
 in a specific variable, say v12. Then the resulting matrix produced by matcell has
 only 4 elements, while the other vectors have 5. And trying to append a row
 of the wrong length to a matrix will cause an error.
 fulltab obviates this problem by temporarily adding observations to your
 data set, one for each possible value in your list, thus generating full tables.
 The counts are all off by one and are corrected before exit. And added
 observations are dropped.
Series: Statistical Software Components
Number: S358901
Creation-Date: 19981021
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/fulltab.ado
File-Format: text/plain
File-Size: 74 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/fulltab.hlp
File-Format: text/plain
File-Size: 48 lines
File-Function: help file
Handle: RePEc:boc:bocode:S358901

Template-Type: ReDIF-Software 1.0
Title: CLUSTER: Stata module to perform nonhierarchical k-means (or k-medoids) cluster analysis 
Author-Name: D. H. Judson
Author-Email: djudson@unr.edu
Author-WorkPlace-Name: Nevada State Demographer's Office
Programming-Language: Stata
Abstract: Cluster performs nonhierarchical k-means (or k-medoids) cluster analysis of
 your data. Centroid cluster analysis is a simple method that groups cases based on their
 proximity to a multidimensional centroid or medoid. Cluster.do provides an example of usage.
Series: Statistical Software Components
Number: S358403
Requires: centroid.ado, medoid.ado
Creation-Date: 19981020
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/cluster.ado
File-Format: text/plain
File-Size: 222 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/cluster.hlp
File-Format: text/plain
File-Size: 129 lines
File-Function: help file
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/cluster.do
File-Format: text/plain
File-Size: 196 lines
File-Function: example file
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/wdat5.zip
File-Format: application/bin/zipped
File-Size: 4 Kb
File-Function: sample Stata data file
Handle: RePEc:boc:bocode:S358403

Template-Type: ReDIF-Software 1.0
Title: MEDOID: Stata module to calculate medoids 
Author-Name: D. H. Judson
Author-Email: djudson@unr.edu
Author-WorkPlace-Name: Nevada State Demographer's Office
Programming-Language: Stata
Abstract: The program medoid takes as input a set of variables and a grouping 
 variable, which is designated groupvar.  Groupvar indicates into which 
 group each case falls.  As output, it generates a set of group medoids,
 which are medians of each variable in varlist, and a set of distances, 
 which indicate how far each case is from each medoid. 
Series: Statistical Software Components
Number: S358402
Creation-Date: 19981020
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/medoid.ado
File-Format: text/plain
File-Size: 71 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/medoid.hlp
File-Format: text/plain
File-Size: 32 lines
File-Function: help file
Handle: RePEc:boc:bocode:S358402

Template-Type: ReDIF-Software 1.0
Title: CENTROID: Stata module to calculate centroids
Author-Name: D. H. Judson
Author-Email: djudson@unr.edu
Author-WorkPlace-Name: Nevada State Demographer's Office
Programming-Language: Stata
Abstract: The program centroid takes as input a set of variables and a grouping 
 variable, which is designated groupvar.  Groupvar indicates into which 
 group each case falls.  As output, it generates a set of group centroids,
 which are means of each variable in varlist, and a set of distances, which
 indicate how far each case is from each centroid.
Keywords: centroid, distance measures
Series: Statistical Software Components
Number: S358401
Creation-Date: 19981020
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/centroid.ado
File-Format: text/plain
File-Size: 68 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/centroid.hlp
File-Format: text/plain
File-Size: 30 lines
File-Function: help file
Handle: RePEc:boc:bocode:S358401

Template-Type: ReDIF-Software 1.0
Title: LEVENE: Stata module to test for equal population variances
Author-Name: Herve M. Caci
Author-Email: hcaci@pratique.fr
Programming-Language: Stata
Abstract: Levene's T-test is used to test the null hypothesis that multiple
 population variances (corresponding to multiple samples) are equal.
 The test is a one-way ANOVA on absolute deviations for each group. This is version 1.1 
 of the software.
Keywords: one-way ANOVA, variance 
Series: Statistical Software Components
Number: S358302
Creation-Date: 19981018
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/levene.ado
File-Format: text/plain
File-Size: 62 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/levene.hlp
File-Format: text/plain
File-Size: 32 lines
File-Function: help file
Handle: RePEc:boc:bocode:S358302

Template-Type: ReDIF-Software 1.0
Title: LMS: Stata module to perform least median squares regression fit
Author-Name: Michael Blasnik
Author-Email: mblas9@aol.com
Programming-Language: Stata
Abstract: lms fits a least median squares regression of varlist on depvar. Least  
 Median Squares is a robust fitting approach which attempts to minimize
 the median squared residual of the regression (equivalent to minimizing the 
 median absolute residual). The algorithm here works by exactly fitting lines 
 (or planes or hyperplanes) to random subsets of observations of size 
 n=# parameters.  Based on the number of parameters, 300 to 3000 of these
 random subsets are fit and the one with the minimum median residual is 
 selected as best. 
Keywords: robust regression, least median squares
Series: Statistical Software Components
Number: S358301
Creation-Date: 19981017
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/lms.ado
File-Format: text/plain
File-Size: 58 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/lms.hlp
File-Format: text/plain
File-Size: 75 lines
File-Function: help file
Handle: RePEc:boc:bocode:S358301

Template-Type: ReDIF-Software 1.0
Title: QEXP: Stata module to produce quantile-quantile plot for data vs fitted 
 exponential distribution
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: qexp plots the quantiles of varname against the quantiles of a
 one-parameter exponential distribution, with distribution function
 1 - exp(-varname / mean). The values of varname should be zero or
 positive.
Keywords: graphics, exponential distribution, probability plots
Series: Statistical Software Components
Number: S357702
Creation-Date: 19981013
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/qexp.ado
File-Format: text/plain
File-Size: 68 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/qexp.hlp
File-Format: text/plain
File-Size: 53 lines
File-Function: help file
Handle: RePEc:boc:bocode:S357702

Template-Type: ReDIF-Software 1.0
Title: PEXP: Stata module to produce probability plot for data compared with 
 fitted exponential distribution
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: pexp produces a probability plot for varname compared with a
 one-parameter exponential distribution, with distribution function
 1 - exp(-varname / mean). The values of varname should be zero or
 positive.
Keywords: graphics, exponential distribution, probability plots
Series: Statistical Software Components
Number: S357701
Creation-Date: 19981013
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/pexp.ado
File-Format: text/plain
File-Size: 45 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/pexp.hlp
File-Format: text/plain
File-Size: 51 lines
File-Function: help file
Handle: RePEc:boc:bocode:S357701

Template-Type: ReDIF-Software 1.0
Title: VALLIST: Stata module to list distinct values of a variable
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: vallist puts a sorted list of the distinct non-missing values of
 varname into global macro S_1, and displays that list. varname may
 be numeric or string. This is version 2.0.1 of the software.
Keywords: value list, programming, data description
Series: Statistical Software Components
Number: S357601
Creation-Date: 19981009
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/vallist.ado
File-Format: text/plain
File-Size: 83 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/vallist.hlp
File-Format: text/plain
File-Size: 71 lines
File-Function: help file
Handle: RePEc:boc:bocode:S357601

Template-Type: ReDIF-Software 1.0
Title: DCT: GAUSS module to read and write Stata numeric file dictionaries
Author-Name: Jon Faust
Author-Email: faustj@frb.gov
Author-WorkPlace-Name: Federal Reserve Board
Programming-Language: GAUSS
Abstract: These are routines to read and write simple versions of STATA dictionary
   files.    
   For reading, the simple form basically allows free form data
   that is to be stored in a real matrix.  Can write the same form.
   Simple names will be supplied on demand. More specifics about what
   readDct can read are provided in the documentation of that routine.
   The key routines are: readDct(fname), writeDct(fname,data,names,labels,supplyNames,maxCols);   
   also of interest are:
   writeDctHead(),
   writeDctBody()
Keywords: data conversion
Series: Statistical Software Components
Number: S357402
Creation-Date: 19981006
File-URL: http://patriot.net/~faustj/jon/pdf/dct.zip
File-Format: application/bin/zipped
File-Size: 5 Kb
File-Function: program code
Handle: RePEc:boc:bocode:S357402

Template-Type: ReDIF-Software 1.0
Title: LABGRAPH: Stata module to place text labels on two-way graphs
Author-Name: Jon Faust
Author-Email: faustj@frb.gov
Author-WorkPlace-Name: Federal Reserve Board
Programming-Language: Stata
Abstract:  This is an extension of the (two-way) graph command allowing one to
 place a list of labels at specified x,y values on the graph.  All
 (two-way) graph options are supported.  There are two additional
 options: labtxt   specifies a semi-colon delimited list of strings to serve
         as labels, e.g., labtxt(label one; label two), and labxy 
         specifies a semi-colon delimited list of x,y pairs indicating
         where to center the labels on the graph, e.g., labxy(5,1;4,2)   
Keywords: graphics
Series: Statistical Software Components
Number: S357401
Creation-Date: 19981006
File-URL: http://patriot.net/~faustj/jon/pdf/lg.zip
File-Format: application/bin/zipped
File-Size: 3 Kb
File-Function: program code
File-URL: http://patriot.net/~faustj/jon/pdf/labgraph.pdf
File-Format: application/pdf
File-Size: 22 Kb
File-Function: documentation
Handle: RePEc:boc:bocode:S357401

Template-Type: ReDIF-Software 1.0
Title: _GANY: Stata function to create variable containing subset of values
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract:  _gany adds to the egen function list. egen z=any(y), any( ) returns z
    containing those values of y specified by the any( ) option. The
    specification may be of integers or of ranges bounded by integers.
    any(12 15/30) indicates that values may be equal to 12 or in the range
    15 to 30 inclusive. Elements of the specification may also be separated
    by commas, and if and in clauses may appear. The file
    must be placed on the ado-path. This is version 1.1.0 of the software.
    See also _geqany.
Keywords: data management, egen function, subset selection
Series: Statistical Software Components
Number: S356102
Creation-Date: 19980923
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/_gany.ado
File-Format: text/plain
File-Size: 67 lines
File-Function: program code
Handle: RePEc:boc:bocode:S356102

Template-Type: ReDIF-Software 1.0
Title: DUMMIES: Stata function to create families of dummy variables
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: dummies creates families of dummy variables for each variable in varlist.
 Applied to varname, it produces varname1, varname2, etc. Applied to longname
 (a name 8 characters long), it produces longnam1, longnam2, etc. This is version 1.1.1 of 
 the software.
Keywords: data management, dummy variables
Series: Statistical Software Components
Number: S356601
Creation-Date: 19980923
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/dummies.ado
File-Format: text/plain
File-Size: 18 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/dummies.hlp
File-Format: text/plain
File-Size: 50 lines
File-Function: program code
Handle: RePEc:boc:bocode:S356601

Template-Type: ReDIF-Software 1.0
Title: BDSSIG: MATLAB module to calculate Brock, Dechert & Scheinkman test significance
Author-Name: Ludwig Kanzler
Author-Email: ludwig.kanzler@economics.oxford.ac.uk
Author-WorkPlace-Name: University of Oxford
Programming-Language: MATLAB
Abstract: SIG = BDSSIG (W, N, M, EPS) evaluates the significance of BDS statistics W under the
 null hypothesis of iidness, using Kanzler's (1998) finite-sample quantile values.
 The significance levels can only assume 0.005, 0.010, 0.025, 0.050 or 1 (indicates
 failure to reject the null hypothesis) in value. These levels must be doubled to
 conduct what is normally a two-sided BDS test.
 N is the size of the sample on which the BDS statistics were computed.
 M can be either a scalar or a vector (corresponding to W) and represents
 the embedding dimension(s) for which the BDS statistics were computed.
 Only integers between 2 and 15 inclusive are permitted.
 EPS is the dimensional distance for which the BDS statistics were calculated.
 This is given in units of the standard deviation of approximately normally
 distributed samples, and only values 0.5, 1.0, 1.5 and 2.0 are allowed.
Series: Statistical Software Components
Number: T891501
Creation-Date: 19980915
File-URL: ftp://ftp.bc.edu/pub/user/baum/matlab/bdssig.m
File-Format: text/plain
File-Size: 485 lines
File-Function: program code
Handle: RePEc:boc:bocode:T891501

Template-Type: ReDIF-Software 1.0
Title: _GEQANY: Stata function to create indicator variable indicating set membership
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: _geqany adds to the egen function list. egen z=eqany(y), any(1,5,9,13) returns
 a value of 1 if y equals any of the integer values listed in the any() list, zero otherwise. 
 if and in clauses may appear. The file must be placed on the
 ado-path. This is version 1.1.0 of the software.
Keywords: data management, egen function, indicator variables
Series: Statistical Software Components
Number: S356101
Creation-Date: 19980923
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/_geqany.ado
File-Format: text/plain
File-Size: 67 lines
File-Function: program code
Handle: RePEc:boc:bocode:S356101

Template-Type: ReDIF-Software 1.0
Title: NPROC: Stata module to produce nonparametric receiver operating curves
Author-Name: Philip Price
Author-Email: Phillip.Price@nrma.com.au
Author-Name: Fred Wolfe
Author-Email:fwolfe@southwind.net
Programming-Language: Stata
Abstract: nproc calculates nonparametric AUCs and standard errors for ROC curves 
 for the varlist. If more than 2 curves are requested, a chi-square test
 for the difference between the first and subsequent curves is calculated.
 The default graph option displays the graph of each variable as the 
 statistics are being calculated. In addition, the default graph option
 saves sensitivity and specificity data, AUCs, standard errors, and 
 Chi-square and p-value data to an output file for subsequent analysis
 by the companion graph program, rocgraph. While graphs are being
 displayed by nproc and statistics calculated, graphs may be selected
 and printed. rocgraph also displays summary statistics.
 ROC analysis is a method of measuring and comparing the accuracy of one or
 more variables at predicting whether each observation is a member of one of
 two groups/categories.  The ROC curve plots the Sensitivity (True Positive
 rate) against 1-Specificity (False Positive rate).  The larger the Area
 Under the ROC Curve (AUC) , the better the variable is at predicting group
 membership. 
Series: Statistical Software Components
Number: S355602
Creation-Date: 19980917
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/nproc.ado
File-Format: text/plain
File-Size: 143 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/rocplot.ado
File-Format: text/plain
File-Size: 100 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/rocauc.ado
File-Format: text/plain
File-Size: 67 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/rocse.ado
File-Format: text/plain
File-Size: 93 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/roccov.ado
File-Format: text/plain
File-Size: 105 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/nproc.hlp
File-Format: text/plain
File-Size: 109 lines
File-Function: help file
Handle: RePEc:boc:bocode:S355602

Template-Type: ReDIF-Software 1.0
Title: MLOGPRED: Stata module to produce predicted probabilities after mlogit and svymlog
Author-Name: Bill Sribney
Author-Email: wsribney@stata.com
Author-WorkPlace-Name: Stata Corporation
Author-WorkPlace-Postal: Stata Corporation, 702 University Drive East, College Station, Texas 77840 USA
Programming-Language: Stata
Abstract: mlogpred computes predicted probabilities, standard errors of predicted
 probabilities, and confidence intervals for predicted probabilities after
 mlogit and svymlog.
Series: Statistical Software Components
Number: S355601
Creation-Date: 19980917
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/mlogpred.ado
File-Format: text/plain
File-Size: 252 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/mlogpred.hlp
File-Format: text/plain
File-Size: 105 lines
File-Function: help file
Handle: RePEc:boc:bocode:S355601

Template-Type: ReDIF-Software 1.0
Title: CLARIFY: Stata modules for Monte Carlo simulation 
Author-Name: Gary King
Author-Email: king@harvard.edu
Author-WorkPlace-Name: Harvard University
Programming-Language: Stata
Abstract:  CLARIFY is a program that uses Monte Carlo simulation to convert the
    raw output of statistical procedures into results that are of direct
    interest to researchers.  The program, designed for use with the Stata
    statistics package, offers a convenient way to implement the techniques
    described in: Gary King, Michael Tomz, and Jason Wittenberg (1998).  "Making
    the Most of Statistical Analyses: Improving Interpretation and
    Presentation."  Available from http://GKing.Harvard.Edu/files/enough.pdf.
    CLARIFY Version 1.2 simulates quantities of interest for the most
    commonly used statistical models, including linear regression, binary
    logit, binary probit, ordered logit, ordered probit, multinomial
    logit, Poisson regression, and negative binomial regression.
    Subsequent versions of CLARIFY will compute quantities of interest for
    other statistical models.
Series: Statistical Software Components
Number: S355501
Creation-Date: 19980916
File-URL: http://GKing.Harvard.Edu/files/clarify.zip
File-Format: application/bin/zipped
File-Size: 33 Kb
File-Function: program code and help files 
Handle: RePEc:boc:bocode:S355501

Template-Type: ReDIF-Software 1.0
Title: XCORPLOT: Stata module to calculate and graph cross-correlation function 
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Author-Name: Aurelio Tobias
Author-Email: atobias@imim.es
Author-WorkPlace-Name: IMIM Barcelona
Programming-Language: Stata
Abstract: xcorplot calculates and graphs the first lags() cross-correlations of
 var1 and var2, both positive and negative.
 It is the user's responsibility to ensure that data are in appropriate
 sort order (usually, but not necessarily, time order).
 xcorplot is built on Sean Becketti's xcorr (STB-13) and requires other
 programs from his time series library (STB-24) to be installed.
Keywords: graphics, time series, cross-correlation
Series: Statistical Software Components
Number: S355401
Creation-Date: 19980915
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/xcorplot.ado
File-Format: text/plain
File-Size: 167 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/xcorplot.hlp
File-Format: text/plain
File-Size: 81 lines
File-Function: help file
Handle: RePEc:boc:bocode:S355401

Template-Type: ReDIF-Software 1.0
Title: HISTPLOT: Stata module to produce histogram for frequency distribution
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: histplot plots a histogram showing the frequency distribution of
 varname. The range of varname is divided into bins or classes of width
 given by width( ) and the limits of each class are multiples of that
 width.
Keywords: graphics, histograms, frequency distributions 
Series: Statistical Software Components
Number: S355301
Creation-Date: 19980914
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/histplot.ado
File-Format: text/plain
File-Size: 23 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/histplot.hlp
File-Format: text/plain
File-Size: 82 lines
File-Function: help file
Handle: RePEc:boc:bocode:S355301

Template-Type: ReDIF-Software 1.0
Title: GRAND2: Stata module to compute an estimate of the grand mean/intercept and differences
Author-Name: Vince Wiggins
Author-Email: vwiggins@stata.com
Author-WorkPlace-Name: Stata Corporation
Author-WorkPlace-Postal: Stata Corporation, 702 University Drive East, College Station, Texas 77840   USA
Programming-Language: Stata
Abstract: For use after fit to present a set of indicator/dummy variables in the form
 of a "grand mean" and differences from the "grand mean".  The specified list of
 variables (indicator_variable_list) must be orthogonal and completely span the
 space.  The model estimated by fit must also include the complete list of
 indicator variables that fully span the space.  Use the hascons option on
 fit to allow the full set of indicators to be included in the model.
 grand2 cannot be used after regress, it requires some of the results
 stored by fit. grand2 recasts the full parameter and variance estimates from the prior fit
 and saves the result as the current estimates.  In this sense, grand2 acts
 like an estimator.  The coefficients, standard errors, and matrices may be
 accessed in the same way as any estimator; specifically, test may be used to perform tests
 with the grand mean and differences. 
Series: Statistical Software Components
Number: S355201
Creation-Date: 19980914
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/grand2.ado
File-Format: text/plain
File-Size: 149 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/grand2.hlp
File-Format: text/plain
File-Size: 133 lines
File-Function: help file
Handle: RePEc:boc:bocode:S355201

Template-Type: ReDIF-Software 1.0
Title: DELTACO: Stata module to calculate individual regression coefficients
Author-Name:  Zhiqiang Wang
Author-Email: wang@menzies.su.edu.au
Author-WorkPlace-Name: Menzies School of Health Research
Programming-Language: Stata
Abstract: deltaco calculates regression coefficient for each individual group
 and adds this coefficient into the data for further analysis.
Series: Statistical Software Components
Number: S355102
Creation-Date: 19980913
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/deltaco.ado
File-Format: text/plain
File-Size: 64 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/deltaco.hlp
File-Format: text/plain
File-Size: 40 lines
File-Function: help file
Handle: RePEc:boc:bocode:S355102

Template-Type: ReDIF-Software 1.0
Title: BARPLOT2: Stata module to produce bar plot with optional error bars
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: barplot2 produces a bar plot of yvar against xvar. yvar is plotted as
 a series of unshaded bars rising above or falling below a base line.
 The height of each bar is given by yvar, the width via the width option,
 the base via the base option and the horizontal centre of each bar by
 xvar. Through the width() option, barplot2 could be used to produce
 overlapping or underlapping bars, if desired for some reason.
 Through the error() option, error bars may be added to each bar.
Keywords: graphics, error bar plots
Series: Statistical Software Components
Number: S355101
Creation-Date: 19980913
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/barplot2.ado
File-Format: text/plain
File-Size: 72 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/barplot2.hlp
File-Format: text/plain
File-Size: 85 lines
File-Function: help file
Handle: RePEc:boc:bocode:S355101

Template-Type: ReDIF-Software 1.0
Title: ADJUST: Corrected Stata module to compute adjusted predictions and probabilities after estimation
Author-Name: Kenneth Higbee
Author-Email: khigbee@stata.com
Author-WorkPlace-Name: Stata Corporation
Author-WorkPlace-Postal: Stata Corporation, 702 University Drive East, College Station, Texas 77840 USA
Programming-Language: Stata
Abstract: After an estimation command adjust provides adjusted predictions of xbeta (the
 means in a linear-regression setting) or probabilities (available after certain
 estimation commands).  The estimate is computed for each level of the by
 variable(s) setting the variable(s) specified in var[= #] [var[= #] ...] to
 their mean or to the specified number if the = # part is used.  Variables used
 in the estimation command but not included in either the by variable list or
 the adjust variable list are left at their current values, observation by
 observation.  In this case adjust displays the average estimated prediction or
 probability for each level of the by variables. This is version 1.3.0, which will appear
 in STB-46.
Series: Statistical Software Components
Number: S355001
Creation-Date: 19980913
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/adjust.ado
File-Format: text/plain
File-Size: 862 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/adjust.hlp
File-Format: text/plain
File-Size: 209 lines
File-Function: help file
Handle: RePEc:boc:bocode:S355001

Template-Type: ReDIF-Software 1.0
Title: WILLIAMS: Stata module to estimate logistic regression via Williams procedure
Author-Name: Joseph Hilbe
Author-Email: hilbe@asu.edu
Author-WorkPlace-Name: Arizona State University
Programming-Language: Stata
Abstract: The Williams procedure, originally written in GLIM, helps accomodate for
 overdispersion in binomial (proportional) models. It is not a post facto sort
 of adjustment; rather there is an adjustment made to the variance at each
 iteration in the IRLS routine. The Williams procedure iteratively reduces the Chi2-based dispersion to 
 approximately 1.0. An extra parameter, called phi, is used to scale the  
 variance function. It changes with each iteration. The value of phi which 
 results in a chi2-based dispersion of 1.0 is then used to weight a standard
 grouped logistic regression.
 The final weighted logistic regression displays p-values based on
 t-statistics per recommendation of D. Collett (1991), Modeling Binary Data,
 Chapman & Hall, p 196.
Series: Statistical Software Components
Number: S354901
Creation-Date: 19980910
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/williams.ado
File-Format: text/plain
File-Size: 56 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/_binom.ado
File-Format: text/plain
File-Size: 237 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/williams.hlp
File-Format: text/plain
File-Size: 55 lines
File-Function: help file
Handle: RePEc:boc:bocode:S354901

Template-Type: ReDIF-Software 1.0
Title: GWHET: Stata module to perform test for groupwise heteroskedasticity
Author-Name: Gregorio Impavido 
Author-Email: Gimpavido@worldbank.org
Author-WorkPlace-Name: The World Bank
Programming-Language: Stata
Abstract: gwhet Performs Lagrange Multiplier test for Groupwise heteroskedasticity
     on the variable var when groups are defined by the index variable
     idx. idx may contain string, numeric, or both string and nu-
     meric variables. Missing values in idx (either . or "") are
     treated like any other group number. Notice that instead of the MLE
     for the group variances I use the sample equivalent (i.e. divided by
     "n-1" and not by "n"). This is version 1.1.0 of the software.
Series: Statistical Software Components
Number: S354601
Creation-Date: 19980908
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/gwhet.ado
File-Format: text/plain
File-Size: 57 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/gwhet.hlp
File-Format: text/plain
File-Size: 52 lines
File-Function: help file
Handle: RePEc:boc:bocode:S354601

Template-Type: ReDIF-Software 1.0
Title: LONGCH: Stata module to identify how many records satisfy a condition
Author-Name: Tony Brady
Author-Email: tbrady@rpms.ac.uk
Author-WorkPlace-Name: Royal Postgraduate Medical School
Programming-Language: Stata
Abstract: The command longch is used with data in which there are several
 records per subject. The variable idname identifies the subjects,
 and the string in c() contains a logical condition. The program
 reports the number of subjects for which some records satisfy the
 condition; the number for which no records satisfy the condition; and
 the number of subjects for which every record satisfies the condition.
 In addition the logical variables _some, _none and _every which 
 flag the records are created. This is useful for dropping all records
 belonging to subjects of a particular type, eg those with no records
 satisfying the condition.
Series: Statistical Software Components
Number: S354202
Creation-Date: 19980904
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/longch.ado
File-Format: text/plain
File-Size: 38 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/longch.hlp
File-Format: text/plain
File-Size: 61 lines
File-Function: help file
Handle: RePEc:boc:bocode:S354202

Template-Type: ReDIF-Software 1.0
Title: UNIQUE: Stata module to report number of unique values in variable(s)
Author-Name: Tony Brady
Author-Email: tbrady@rpms.ac.uk
Author-WorkPlace-Name: Royal Postgraduate Medical School
Programming-Language: Stata
Abstract: The command unique without a by reports the number of unique values for
 the varlist. With a by it does the same, but also creates a new
 variable (_Unique by default but can be named in the gen option). This new
 variable contains the number of unique values of the varlist for each level
 of the by variable. The new variable is coded missing except for the first
 record in each group defined by the levels of the by variable.
 The command is useful for exploring data where the records refer to
 more than one level, for example longitudinal data where each record
 refers to a visit by a subject.
Series: Statistical Software Components
Number: S354201
Creation-Date: 19980904
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/unique.ado
File-Format: text/plain
File-Size: 51 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/unique.hlp
File-Format: text/plain
File-Size: 74 lines
File-Function: help file
Handle: RePEc:boc:bocode:S354201

Template-Type: ReDIF-Software 1.0
Title: HETPROB: Stata module to estimate heteroskedastic probit model
Author-Name: Bill Gould
Author-Email: wgould@stata.com
Author-WorkPlace-Name: StataCorp
Programming-Language: Stata
Abstract: hetprob is experimental code to estimate heteroskedastic-corrected probits.
 Please read hetprob.doc before relying on this code.
Series: Statistical Software Components
Number: S354101
Creation-Date: 19980901
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/hetprob.ado
File-Format: text/plain
File-Size: 103 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/hetpr_lf.ado
File-Format: text/plain
File-Size: 11 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/hetprob.hlp
File-Format: text/plain
File-Size: 83 lines
File-Function: help file
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/hetprob.doc
File-Format: text/plain
File-Size: 306 lines
File-Function: user documentation
Handle: RePEc:boc:bocode:S354101

Template-Type: ReDIF-Software 1.0
Title: ZINB: Stata module to estimate zero inflated negative binomial model on count data
Author-Name: Jesper Sorensen
Author-Email: jesper.sorensen@gsbpop.uchicago.edu
Author-WorkPlace-Name: University of Chicago
Programming-Language: Stata
Abstract: zinb estimates Zero Inflated Negative Binomial models on count data. This
 model allows for "excess zeros" in count models under the assumption
 that the population is characterized by two regimes, one where members
 always have zero counts, and one where members have zero or positive
 counts.  The likelihood of being in either regime is estimated using a
 logit specification, while the counts in the second regime are
 estimated using a negative binomial specification.  See Long
 (1997) Chapter 8 and Greene (1997) for a discussion.
 zippred will generate predicted counts (using the default xb option)
 or the predicted probability of different counts (using prob).
 zippred should be used instead of predict. 
Series: Statistical Software Components
Number: S354002
Creation-Date: 19980901
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zinb.ado
File-Format: text/plain
File-Size: 60 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zinb_ll.ado
File-Format: text/plain
File-Size: 29 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zinb.hlp
File-Format: text/plain
File-Size: 2 lines
File-Function: help file
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zippred.ado
File-Format: text/plain
File-Size: 79 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zippred.hlp
File-Format: text/plain
File-Size: 2 lines
File-Function: help file
Handle: RePEc:boc:bocode:S354002

Template-Type: ReDIF-Software 1.0
Title: ZIP: Stata module to estimate zero inflated Poisson model on count data
Author-Name: Jesper Sorensen
Author-Email: jesper.sorensen@gsbpop.uchicago.edu
Author-WorkPlace-Name: University of Chicago
Programming-Language: Stata
Abstract: zip estimates Zero Inflated Poisson models on count data. This
 model allows for "excess zeros" in count models under the assumption
 that the population is characterized by two regimes, one where members
 always have zero counts, and one where members have zero or positive
 counts.  The likelihood of being in either regime is estimated using a
 logit specification, while the counts in the second regime are
 estimated using a Poisson specification.  See Long
 (1997) Chapter 8 and Greene (1997) for a discussion.
 zippred will generate predicted counts (using the default xb option)
 or the predicted probability of different counts (using prob).
 zippred should be used instead of predict. 
Series: Statistical Software Components
Number: S354001
Creation-Date: 19980901
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zip.ado
File-Format: text/plain
File-Size: 59 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zip_ll.ado
File-Format: text/plain
File-Size: 23 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zip.hlp
File-Format: text/plain
File-Size: 86 lines
File-Function: help file
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zippred.ado
File-Format: text/plain
File-Size: 79 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/zippred.hlp
File-Format: text/plain
File-Size: 2 lines
File-Function: help file
Handle: RePEc:boc:bocode:S354001

Template-Type: ReDIF-Software 1.0
Title: GPROP,GPC: Stata functions to generate proportions/percentages of total
Author-Name: Nicholas J. Cox
Author-Email: N.J.Cox@durham.ac.uk
Author-WorkPlace-Name: University of Durham
Programming-Language: Stata
Abstract: _gpc.ado and _gprop.ado calculate percents and proportions of totals  
 for a given variable. Use with egen as egen newvar = pc(var) or 
 egen newvar = prop(var). 
Keywords: graphics, error bar plots
Series: Statistical Software Components
Number: S353901
Creation-Date: 19980901
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/_gprop.ado
File-Format: text/plain
File-Size: 19 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/_gpc.ado
File-Format: text/plain
File-Size: 19 lines
File-Function: program code
Handle: RePEc:boc:bocode:S353901

Template-Type: ReDIF-Software 1.0
Title: JB, JBRESID: Stata modules to perform Jarque-Bera test for normality on 
 series and regression residuals
Author-Name: J. Sky David
Author-Email: jsdavid@politics.tamu.edu
Author-Workplace-Name: Texas A&M University
Author-Name: Gregorio Impavido 
Author-Email: Gimpavido@worldbank.org
Author-WorkPlace-Name: The World Bank
Programming-Language: Stata
Abstract: jb implements the Jarque-Bera test for normality, an alternative to 
 Stata's sktest. jbresid performs the test after running a regression.
Series: Statistical Software Components
Number: S353801
Creation-Date: 19980831
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/jb.ado
File-Format: text/plain
File-Size: 29 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/jb.hlp
File-Format: text/plain
File-Size: 51 lines
File-Function: help file
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/jbresid.ado
File-Format: text/plain
File-Size: 25 lines
File-Function: program code
File-URL: ftp://ftp.bc.edu/pub/user/baum/statal/jbresid.hlp
File-Format: text/plain
File-Size: 59 lines
File-Function: help file
Handle: RePEc:boc:bocode:S353801


