Bookmark and Share

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


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

Re: st: Benchmarks for Stata


From   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   Re: st: Benchmarks for Stata
Date   Fri, 10 Dec 2010 12:08:08 -0500

I had to tweak Austin's code since I do not have permission to write
to sysdir (code and output below), but I am now getting an error:
c(showbaselevels) undefined. This error only happens in batch mode. I
can estimate the logit by hand without any problems.

I forced Stata to update the executable and the utilities as was
suggested on a previous thread, and I made sure to conduct the swap.
Stata looks up to date:

. update query
(contacting http://www.stata.com)

Stata executable
    folder:               C:\Program Files (x86)\Stata11\
    name of file:         StataMP-64.exe
    currently installed:  04 Nov 2010
    latest available:     04 Nov 2010

Ado-file updates
    folder:               C:\Program Files (x86)\Stata11\ado\updates\
    names of files:       (various)
    currently installed:  10 Nov 2010
    latest available:     10 Nov 2010

Utilities updates
    folder:               C:\Program Files (x86)\Stata11\utilities
    names of files:       (various)
    currently installed:  01 Sep 2010
    latest available:     01 Sep 2010

Recommendation
    Do nothing; all files up to date.



Here's my version of Austin's code:

#delimit;
set more off;
clear all;

cd "C:\Users\masterd\Documents"; // don't have permissions, so changed dirs.
tempname t;
file open `t' using batch.do, write replace; // added replace
file write `t' "sysuse nlsw88, clear" _n;
file write `t' "set rmsg on" _n;
file write `t' "set seed 1" _n;
file write `t' "bs, r(50000): logit married grade south wage" _n;
file write `t' "exit" _n;
file close `t';
! "C:\Program Files (x86)\Stata11\StataMP" -b do batch; // changed
Stata MP to path
erase batch.do;
type batch.log;
erase batch.log;


The output looks like:
  ___  ____  ____  ____  ____ (R)
 /__    /   ____/   /   ____/
___/   /   /___/   /   /___/   11.0   Copyright 1984-2009
  Statistics/Data Analysis            StataCorp
                                      4905 Lakeway Drive
     MP - Parallel Edition            College Station, Texas 77845 USA
                                      800-STATA-PC        http://www.stata.com
                                      979-696-4600        [email protected]
                                      979-696-4601 (fax)

Single-user 8-core Stata perpetual license:
       Serial number:  50110577213
         Licensed to:  Dimitriy V. Masterov
                       Domino's Pizza

Notes:
      1.  (/m# option or -set memory-) 50.00 MB allocated to data
      2.  (/v# option or -set maxvar-) 5000 maximum variables
      3.  Stata running in batch mode

. do batch

. sysuse nlsw88, clear
(NLSW, 1988 extract)

. set rmsg on
r; t=0.00 11:58:52

. set seed 1
r; t=0.00 11:58:52

. bs, r(50000): logit married grade south wage
c(showbaselevels) undefined
r(133); t=0.02 11:58:52

end of do-file
r(133); t=0.00 11:58:52

. erase batch.log;
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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