Statalist


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

Re: st: Question about technical term and use of external programs by Stata


From   "Sergiy Radyakin" <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Question about technical term and use of external programs by Stata
Date   Tue, 11 Mar 2008 17:13:47 -0400

Hello Tiago,

the right way to do it is to compile a .DLL in Fortran, and use the
Stata's plugins interface. The description of plugins is here:

www.stata.com/plugins/

Plugins can have any extension. I use .plu. Other variants are .plugin and .dll.

There is probably no benefit in renaming .exe files to .ado. It might
trigger some antiviruses if they notice an attempt to execute a
non-executable file. It might also confuse users, since it is
reasonable to expect a Stata's code in an .ado file.

See help for Stata's command winexec to see how you can launch an
executable from Stata.

Best regards,
    Sergiy Radyakin



On 3/11/08, tiago.pereira@incor.usp.br <tiago.pereira@incor.usp.br> wrote:
> Dear All,
>
> Would it be possible to you to provide me the technical term (the problem
> here is the English) of the process by which Stata calls another program,
> which, in turn, does all calculations and sends results back to Stata?
>
> I just have written a program that I think it will be very useful to other
> Stata users. Nonetheless, since the current Stata programming does not
> support very well "heavy", exact tests, for some calculations Stata calls
> a fortran program do to the task. Is this an elegant way to do something
> in Stata that cannot be done in terms of standard Stata programming? The
> program in a .exe file renamed to .ado. The source code is available for
> Unix users. Hence, I would like to know your previous experience with this
> kind of stuff as well as if there is a problem in making that program ( a
> .exe masked as .ado) available?
>
> All the best,
>
> Tiago
> *
> *   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/
>
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index