Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: FORTRAN code to Stata


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: FORTRAN code to Stata
Date   Tue, 9 Nov 2004 10:32:20 -0000

I've done it in the past -- although more commonly 
in my case ancient Fortran code became Basic on some primitive 
PC, which in turn became Stata. But I am not sure
what advice you want. One-dimensional arrays
usually become variables, DO loops become 
-forval-, etc. Not all translations are obvious: 
sometimes two-dimensional arrays become Stata 
matrices; sometimes rethinking to a different
data structure is a better idea. 

Nick 
n.j.cox@durham.ac.uk 

siyama@who.int
 
> I was wondering whether anyone had experience translating Fortran code
> (*.FOR) into Stata *.ado or *.do files. I would appreciate very much a
> chance to see an example of that.

*
*   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