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

st: new cmp and ghk2() versions

From   "David Roodman (" <DRoodman@CGDEV.ORG>
To   <>
Subject   st: new cmp and ghk2() versions
Date   Mon, 17 Nov 2008 12:30:46 -0500

I made a change to ghk2(), which led to a minor change in -cmp-, and
which can cause (hopefully small) changes in -cmp- results.

-cmp- breaks observations that require the GHK algorithm into
identically-censored groups. So in a trivariate probit problem, all
observations with 0 outcomes for all 3 equations are one group, those
with 0,0,1 are in another, and so on. Before the latest version, when
computing the likelihoods for each group of observations, -cmp- started
at the beginning of the Halton/generalized
Halton/Hammersley/pseudorandom sequence of pre-computed draws.  Now it
uses a different part of the sequence for each block, which prevents
spurious simulated correlations in errors across observations. In
general, this should improve convergence behavior.

To allow this change, ghk2() now requires a new argument that specifies
where to start in the sequence. Missing (".") is interpreted as 1. This
means that calls to ghk2() will need to be edited to work with the new

Update with "ssc install cmp, replace" and "ssc install ghk2, replace".

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index