WinEdt, the editor of choice for many LaTeX users, can be used as Stata do-file editor in a fairly simple manner by installing Stata Mode. However, as far as I can tell, the author of Stata Mode doesn’t appear to have anticipated Stata’s willingness to produce new versions – in extracting the path to the Stata executable it only looks for versions 8-10. If you have version 11 this is easily fixed. After unzipping Stata Mode, look for extract_path.edt and open it. Change line 11 to:
LetRegNum(8,11);
Save the file and the run the installation macro. Of course, this will break once version 12 comes out, which is normally about a month after I decide to splurge on an upgrade. Wouldn’t it be nice if Statacorp gave you a warning that a new version was on the horizon? I know, I should be using R. It also plays nice with (R)Winedt.
Stata Mode lacks one convenient feature – the ability to run only selected lines of your Stata code. This can be achieved by following these instructions.
Rodrigo | 09-Oct-09 at 8:30 pm | Permalink
Thanks, I have struggled with this after I got Stata11 in july. And noticed that the author had not posted a solution, and just wrote to him asking if I am the only one with this issue.
I google it again and this is the first solution I have seen about this minor issue, you could contact philip.greenwood@mcri.edu.au the author or the Winedt people to point out your solution from their website.
Indridi | 09-Oct-09 at 9:11 pm | Permalink
Good point – I’ve emailed Philip.