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]

st: Re: How to reference results from a big dataset within a program


From   Christopher Baum <[email protected]>
To   "<[email protected]>" <[email protected]>
Subject   st: Re: How to reference results from a big dataset within a program
Date   Wed, 28 Aug 2013 11:10:05 +0000

<>
On Aug 28, 2013, at 2:33 AM, Minxing <[email protected]>
 wrote:

> 
> I tried to copy of the simulated data within my program by using syntax such as "input x y z k", however, since there are so many observations (a little more than 400,000), and there are system limit for the maximum lines of syntax within a program (around 3500), I was not able to do this way. The reviewer also mentioned that I may use "Mata library" function, but I am pretty new to Stata Mata. Is there anyone that may be able to help regarding this issue?

This is easily done by using an F line to signal that the dta file is required rather than ancillary. For an example of a user-written package in which this trick is employed to make a required dataset available, 

ssc type kountry.pkg

and note the last two lines.

KIt

Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                             An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
  An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html
                                                                                                      http://www.crup.com.cn/Item/111779.aspx     


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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