Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Stata and Emacs interactively


From   Ulrich Kohler <kohler@wzb.eu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Stata and Emacs interactively
Date   Wed, 20 Oct 2010 13:38:28 +0200

Am Mittwoch, den 20.10.2010, 11:15 +0000 schrieb Neil Shephard:
> On Wed, Oct 20, 2010 at 11:07 AM, Ulrich Kohler <kohler@wzb.eu> wrote:
> > Unfortunately Bill's adomode have the feature of sending commands to
> > Stata "only" for Windows and the Mac. If you find a solution for Linux
> > this would be great.
> 
> May depend on your Desktop Environment, but under X11 you should be
> able to highlight a section of code in Emacs (or any other text
> editor).  This will copy it to a buffer ring, then switch to your
> running xstata (either Alt-Tab or switch desktop if its on a separate
> desk-top) and use the left-right mouse simultaneous click to paste the
> code into the Command dialog box of Stata and hit Return.
> 
> The only disadvantage to this that I've come across is that code
> commented out within a command won't be run properly, for example...
> 
> logistic a b c /* d e f */, level(99)
> 
> ...won't work if pasted.
> 
> Whole lines of commented code are not a problem though, Stata will
> simply say that '/' is an invalid command and move onto the next line
> (it also ignores lines that have been commented out with a '*' at the
> first line).

Yes, but in Bill Rising's Ado mode I can run a command like this

graph twoway ///
  || scatter this that /// 
     , with options here and there
  || lowess this that ///
     , even some more options
  || if exp ///
  , and finally the tw-options


directly by just putting the cursor on the command and hit M-Return.
However this works only in Windows and Mac. As a Linux-User I would love
to have this too. 






*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index