Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: mdraws: error when specifying Halton draws?


From   "Stephen P. Jenkins" <[email protected]>
To   <[email protected]>
Subject   st: mdraws: error when specifying Halton draws?
Date   Thu, 7 Dec 2006 09:59:52 -0000

> ------------------------------
> 
> Date: Wed, 6 Dec 2006 12:51:22 -0800 (PST)
> From: Kam Kup <[email protected]>
> Subject: st: mdraws: error when specifying Halton draws?
> 
> The mdraws program gives me an error when I attempt to
> use Halton draws.  That is, when I type in
> 
> .mdraws, neq(2) dr(100) prefix(zz) burn(10)
> antithetics
> 
> I get the error message:
> 
> >invalid 'and'
> 
> This does not happen when I specify psuedo-random
> draws.  mdraws_h.ado is installed, as are all the
> other files listed. Does anyone who has used this
> program have any idea of what is happening?  
>  

I see no problem using my installation -- see below. I suggest that
you check that you really have installed all the files required,
including _gclsort by Philippe Van Kerm (available on SSC).  (The
latter requirement is specified in the help file, the SJ article, and
the pre-print of the article available as an ISER Working Paper.)



. which mdraws_h
d:\home\stephenj\ado\stbplus\m\mdraws_h.ado
*! 1.0.0  SP Jenkins 26 January 2006
*! Adaption by SPJ of code by NJC. Called by -mdraws-
*! 
*! 1.0.0 NJ Cox 6 August 2004 (posted on Statalist)
*! http://www.stata.com/statalist/archive/2004-08/msg00222.html
*! shuffle option added by SP Jenkins, December 2005
*! (requires _gclsort by Philippe Van Kerm)


. which mdraws
d:\home\stephenj\ado\stbplus\m\mdraws.ado
*! version 1.3.0  30march2006 Add option to create antithetic draws;
make rclass
*! version 1.2.0  24march2006 Fix vble names for M >= 10 case
*! version 1.1.0  26jan2006  Cappellari & Jenkins 
*! Create Halton and pseudo-random std uniform draws 
*!  for use in maximum simulated likelihood estimation
*!  Code for Halton draws based on do file code 
*!  from Arne Uhlendorff which in turn uses a program
*!  posted on Statalist by Nick Cox in August 2004
*!  http://www.stata.com/statalist/archive/2004-08/msg00222.html

. set obs 100
obs was 0, now 100

. mdraws, neq(2) dr(100) prefix(zz) burn(10)
Created 100 Halton draws per equation for 2 dimensions. Number of
initial draws dropped per dimension = 10 . Primes used:

  2  3


Stephen
-------------------------------------------------------------
Professor Stephen P. Jenkins <[email protected]>
Institute for Social and Economic Research
University of Essex, Colchester CO4 3SQ, U.K.
Tel: +44 1206 873374.  Fax: +44 1206 873151.
http://www.iser.essex.ac.uk  
Survival Analysis using Stata:
http://www.iser.essex.ac.uk/teaching/degree/stephenj/ec968/ 
Downloadable papers and software: http://ideas.repec.org/e/pje7.html

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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