<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4662199323694440329</atom:id><lastBuildDate>Fri, 06 Sep 2024 22:59:42 +0000</lastBuildDate><title>Stata on a Mac</title><description></description><link>http://macstata.blogspot.com/</link><managingEditor>noreply@blogger.com (Adam)</managingEditor><generator>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-7829402948485342868</guid><pubDate>Wed, 28 May 2008 18:37:00 +0000</pubDate><atom:updated>2008-05-28T11:37:47.841-07:00</atom:updated><title>Five Essential Applications for Academic Mac Users</title><description>I&#39;ve mentioned a lot of small freeware programs on this site, but these are the workhorses of daily academic life: word processors, reference managers, and organizational tools.  Here are my top five:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;1. &lt;a href=&quot;http://www.sonnysoftware.com/&quot;&gt;Bookends&lt;/a&gt;.  &lt;i&gt;Everyone&lt;/i&gt; in scholarship needs some way to organize all of their citations.  Most people use Endnote or Procite.  I&#39;ve found these programs to be very sub-standard on the Mac; like SPSS, you&#39;re basically getting a ported version of the program that is several versions behind and runs quite slowly.  There are online options like &lt;a href=&quot;http://www.refworks.com/&quot;&gt;RefWorks&lt;/a&gt;, but this is usually administered through a university; what happens if I graduate or take a leave of absence?  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;By far the best option I&#39;ve found is Bookends.  It&#39;s developed only for OS X.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Advantages:&lt;/b&gt; Excellent interface; responsive developer; smart groups; importing attachments very simple; exports to many formats including Endnote and Bibtex; affordable; very easy to remove duplicates; integrated Amazon.com and Library of Congress searches; plug-ins available for Word and other word processors like Mellel; universal binary.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Disadvantages:&lt;/b&gt; Not free ($69 for students, $99 for regular license); &quot;Get PDF&quot; function only works for PubMed; sometimes slow to launch; new version upgrades cost $29.  &lt;br /&gt;&lt;br /&gt;There&#39;s also a native OS X program called &lt;a href=&quot;http://www.thirdstreetsoftware.com/index.cgi?page=sente&amp;amp;ref=vt&quot;&gt;Sente&lt;/a&gt; I&#39;ve heard about, but never used. &lt;br /&gt;&lt;p&gt;&lt;br /&gt;2. &lt;a href=&quot;http://www.bean-osx.com/&quot;&gt;Bean&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Advantages:&lt;/b&gt; Free; open source; very slick; small memory footprint; handles .doc files.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Disadvantages:&lt;/b&gt; Does not update automatically; does not support footnotes (obviously a serious drawback for dissertation writing) &lt;br /&gt;&lt;p&gt;&lt;br /&gt;3. &lt;a href=&quot;http://bargiel.home.pl/&quot;&gt;iGTD&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Advantages:&lt;/b&gt; easily imports emails and web pages from other programs; excellent Quicksilver plug-in available; exports lists to iCal and iPod; very customizable; many keyboard shortcuts; drag-and-drop works from almost every application; easy to print lists along with notes you&#39;ve made; works with Growl (although I don&#39;t bother with this feature); minimal memory/CPU footprint; responsive developer&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Disadvantages:&lt;/b&gt; Takes some getting used to, like all organization applications&lt;br /&gt;&lt;p&gt;&lt;br /&gt;4. &lt;a href=&quot;http://www.newsgator.com/Individuals/NetNewsWire/default.aspx&quot;&gt;NetNewsWire&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Advantages:&lt;/b&gt; Free; smooth interface; internal browser is excellent and supports java; customizable; works offline (unlike netvibes and online readers); integrates with MarsEdit (blogging software that I use), Firefox and Safari&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Disadvantages:&lt;/b&gt; hmmm, not many are coming to mind.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;5. &lt;a href=&quot;http://flyingmeat.com/voodoopad/&quot;&gt;Voodoopad&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Advantages:&lt;/b&gt; all-purpose notepad that accepts text, links, pictures, pdfs; responsive developer; lots of interesting plug-ins; great interface&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Disadvantages:&lt;/b&gt; Upgrades not free; Quicksilver integration buggy; wiki format can be a little confusing for note-taking at first.</description><link>http://macstata.blogspot.com/2008/05/five-essential-applications-for.html</link><author>noreply@blogger.com (Adam)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-1538845622362135527</guid><pubDate>Thu, 21 Feb 2008 22:24:00 +0000</pubDate><atom:updated>2008-02-21T14:24:54.761-08:00</atom:updated><title>Using TextWrangler Stationery with Stata</title><description>In addition to its other wonderful features, you can use TextWrangler to save ready-made Stata templates.  For example, I&#39;m dealing with the 1975 Fraternal Order of Police study on gambling arrests.  Most of the time when I open Stata, I&#39;m dealing with this file.  However, it&#39;s not something I want to write into my &lt;font color = #4A8797&gt;profile.do&lt;/font&gt; file, because I sometimes use other files.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;Each time I deal with the 1975 data, I want to do four things (at least):&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;li&gt;Set the memory to 10m; it&#39;s a small dataset and doesn&#39;t need a large memory allocation. &lt;li&gt;Open the original file. &lt;li&gt; Save it as a working file. &lt;li&gt; Start a log.&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt; Textwrangler makes this easy with &lt;b&gt;stationery.&lt;/b&gt;  You can save any file as a stationery file that will be available in the File - New menu in the future.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;Here&#39;s a quick guide to setting up some Stata stationery in Textwrangler &lt;br /&gt;&lt;p&gt;&lt;br /&gt;Open TextWrangler.  Type in the desired text:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R7329yvJYHI/AAAAAAAAAM4/OVFHFHkboDY/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;209&quot; width=&quot;500&quot; alt=&quot;template text&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;p&gt;Save this file in the stationery folder:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R734mSvJYLI/AAAAAAAAANY/SCZn1_40sxo/Picture%205.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;431&quot; width=&quot;500&quot; alt=&quot;saving in stationery folder&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;p&gt;IMPORTANT: the file must be saved in the Textwrangler Stationery folder in Application Support.  So save to ~/Users/adamjacobs/Library/Application Support/TextWrangler/Stationery.  Otherwise this won&#39;t show up in the dialogue:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Now we open Textwrangler and select &quot;New With Stationery&quot;:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R733RivJYJI/AAAAAAAAANI/WkaeMt6sDxs/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;94&quot; width=&quot;500&quot; alt=&quot;open stationery dialogue&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;And here is our new document, already formatted with the desired memory, log, save path and data file.  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R733VivJYKI/AAAAAAAAANQ/DxDoaZmSKmo/Picture%204.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;211&quot; width=&quot;500&quot; alt=&quot;untitled doc with stationery&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;As far as I know, there&#39;s no limit to the number of templates you can have.  Start using stationery and you can save a lot of typing (or mousing) over the next year.  &lt;br /&gt;&lt;br /&gt;&lt;!-- Technorati Tags Start --&gt;&lt;br /&gt;&lt;p&gt;Technorati Tags:&lt;br /&gt;&lt;a href=&quot;http://technorati.com/tag/Mac%20OS%20X&quot; rel=&quot;tag&quot;&gt;Mac OS X&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/Stata&quot; rel=&quot;tag&quot;&gt;Stata&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/statistical%20software&quot; rel=&quot;tag&quot;&gt;statistical software&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/text%20editors&quot; rel=&quot;tag&quot;&gt;text editors&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/TextWrangler&quot; rel=&quot;tag&quot;&gt;TextWrangler&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;!-- Technorati Tags End --&gt;</description><link>http://macstata.blogspot.com/2008/02/using-textwrangler-stationery-with.html</link><author>noreply@blogger.com (Adam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-2774889922140945881</guid><pubDate>Wed, 23 Jan 2008 19:04:00 +0000</pubDate><atom:updated>2008-01-23T11:04:26.128-08:00</atom:updated><title>Integrating Quicksilver Actions with Stata</title><description>If you&#39;re never used &lt;a href=&quot;http://www.blacktree.com/&quot;&gt;Quicksilver&lt;/a&gt;, it&#39;s the number one freeware Mac utility for any system.  I&#39;ve raved about MainMenu, WeatherDock is great, iGTD is always open, MagiCal is brilliant, Menushade was in one of my first posts, NetNewsWire is indispensable, and I could go on.  (I suggest you subscribe to &lt;a href=&quot;http://www. FreeMacWare.com/&quot;&gt;FreeMacWare&lt;/a&gt; or &lt;a href=&quot;http://coolosxapps.net/&quot;&gt;CoolOSXApps&lt;/a&gt; if, like me, you love little free utilities, which seem to abound on OS X).  Quicksilver gets more use per day that any of these, no matter what I&#39;m doing.  That&#39;s because it&#39;s essential a shortcut program that minimizes the keystrokes required for repetitive tasks.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;I mentioned Quicksilver in my &lt;a href=&quot;http://macstata.blogspot.com/2008/01/launching-stata-dock-spotlight-and.html&quot;&gt;previous post on launching Stata&lt;/a&gt;.  Let&#39;s look at what it can do with Stata:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;li&gt;&lt;b&gt;Launching applications&lt;/b&gt;.  You can launch Stata, of course, but I almost always use Quicksilver to launch applications because I only have a laptop and hate the touchpad for mousing.  Quicksilver &quot;learns&quot; your preferences: for example, if you type in &quot;Te&quot; searching for Textwrangler, the first thing that pops up might be TextEdit or Terminal.  However, if you select TextWrangler a few times in a row after typing in &quot;te,&quot; the program will adjust and start making TextWrangler the first icon that pops up.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;You don&#39;t have to wait for the program to adjust, you can directly change the default as well.  Say I want Stata to be the first thing that pops up when I type &quot;s&quot;.  Currently it&#39;s Safari:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R5eJmF2WzSI/AAAAAAAAALo/CL2K8xMCiow/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;344&quot; width=&quot;334&quot; alt=&quot;S command in QS&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I can change it directly in quicksilver:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R5eJcl2WzRI/AAAAAAAAALg/mntO6qfTMlg/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;324&quot; width=&quot;333&quot; alt=&quot;Change QS default&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;b&gt;Navigating folders:&lt;/b&gt; I find Quicksilver faster and easier than Finder for file navigation.  It&#39;s also far easier to use mouse-free.  Here&#39;s an example: suppose I&#39;d like to e-mail the .dta file to a colleague for analysis.  In quickilver, it&#39;s just a few keystrokes:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I press &quot;st&quot; and navigate down to my Stata folder, instead of the Stata app:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R5eMS12WzUI/AAAAAAAAAL4/bOq3zXJs218/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;307&quot; width=&quot;336&quot; alt=&quot;Picture 2.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I press the right arrow and the contents of this folder are displayed:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R5eMgV2WzVI/AAAAAAAAAMA/DaMutTznVfo/Picture%204.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;308&quot; width=&quot;332&quot; alt=&quot;Picture 4.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Right arrow again, and I see the contents of this subfolder.  Here&#39;s the file I&#39;d like to e-mail:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R5eMtl2WzWI/AAAAAAAAAMI/ZW8VLIHSW9k/Picture%205.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;308&quot; width=&quot;326&quot; alt=&quot;Picture 5.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I press tab and select an action.  I could open this file in Stata, show it in Finder, or move it to the desktop.  But I&#39;m selecting &quot;Email to...&quot;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R5eNEV2WzXI/AAAAAAAAAMQ/gbq5VFqMNaY/Picture%206.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;302&quot; width=&quot;503&quot; alt=&quot;Picture 6.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;p&gt;Finally, I press tab again and type a few characters of the colleague&#39;s name and their email pops up:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R5eMF12WzTI/AAAAAAAAALw/Mdsodw98b2I/Picture%207.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;158&quot; width=&quot;400&quot; alt=&quot;Picture 7.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;b&gt;Open a file in a non-default application.&lt;/b&gt;I have my computer set up so all .do files open by default in Textwrangler, my preferred editor.  However, obviously sometimes you want to open them in Stata.  This is very simple with Quicksilver:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Find the folder:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R5ePG12WzYI/AAAAAAAAAMY/BTWvGJmYUPI/Picture%208.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;304&quot; width=&quot;336&quot; alt=&quot;Picture 8.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Navigate with the arrow keys to the preferred file:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R5ePS12WzZI/AAAAAAAAAMg/gvUvCJ_jRVM/Picture%209.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;308&quot; width=&quot;326&quot; alt=&quot;Picture 9.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Tab over to the action pane and select &quot;Open with...&quot;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R5ePcl2WzaI/AAAAAAAAAMo/LuMCX_IW7z0/Picture%2010.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;332&quot; width=&quot;581&quot; alt=&quot;Picture 10.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;Select Stata instead of Textwrangler.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R5ePml2WzbI/AAAAAAAAAMw/CDoU4tsCJ00/Picture%2011.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;214&quot; width=&quot;525&quot; alt=&quot;Picture 11.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Additional notes on Quicksilver:&lt;/b&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;You can also tell quicksilver how &quot;deep&quot; you&#39;d like to index things.  Do you want every single file in every single sub-sub-folders available?  I wouldn&#39;t recommend this, because it slows down the application to index all of this into its cache.  You don&#39;t want every photo you&#39;ve ever taken popping up when you type in &quot;im&quot; as the first two letters.  Generally one or two levels is sufficient.  This can be set in the &quot;Catalog&quot; preference pane.  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;You may also want to turn off the iTunes module.  This allows you to switch to any song, but also really slows down the search and indexing since most people have thousands of songs, podcasts, and in my case, books on tape.  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><link>http://macstata.blogspot.com/2008/01/integrating-quicksilver-actions-with.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-2308580060879128057</guid><pubDate>Tue, 15 Jan 2008 20:12:00 +0000</pubDate><atom:updated>2008-01-15T12:12:30.389-08:00</atom:updated><title>Launching Stata: Dock, Spotlight and Quicksilver</title><description>Launching Stata doesn&#39;t initially seem like an issue worthy of discussion.  It&#39;s simple: you go to the Dock, and you click the icon, right?  Yes.  That&#39;s one way.  There are at least two others.  Let&#39;s review them all:&lt;br /&gt;&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;li&gt;&lt;b&gt;The Dock:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;I like to keep the Dock hidden, and I don&#39;t use it all that much.  But it&#39;s certainly an easy way to launch programs.  Just mouse over to the Stata icon and click it:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R4loZhC2g8I/AAAAAAAAAKA/DhWh3FHU4u4/Picture%207.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;221&quot; width=&quot;73&quot; alt=&quot;Picture 7.jpg&quot; align=&quot;&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;If you hold down the mouse button, or right-click the icon, you get a minimal menu:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R4lokhC2g9I/AAAAAAAAAKI/NBDj0HkDIQs/Picture%208.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;220&quot; width=&quot;241&quot; alt=&quot;Picture 8.jpg&quot; align=&quot;&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Advantages:&lt;/b&gt; no keystrokes; only one click required.&lt;br /&gt;&lt;p&gt;&lt;b&gt;Disadvantages:&lt;/b&gt; &lt;br /&gt;&lt;p&gt;&lt;br /&gt;Note that if you&#39;re completely mouse-averse, as I am when working with just a trackpad, you can maneuver through the Dock with the keyboard.  Press Ctrl-F3 on a full keyboard or Function-Control-F3 on a laptop keyboard.  This activates the Dock:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R4lp5hC2g-I/AAAAAAAAAKQ/IHUR8AdoUJM/Picture%209.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;264&quot; width=&quot;123&quot; alt=&quot;Picture 9.jpg&quot; align=&quot;&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Now you can just use the arrow keys to move down to Stata.  This functionality is built into Macs for accessibility reasons (I think) but it obviously can be helpful at other times.  However, it&#39;s too many keystrokes for everyday use.  &lt;br /&gt;&lt;p&gt;As an aside, I&#39;d suggest Dock hiding for better concentration: press ⌥⌘D to turn on hiding.  The dock re-appears when you mouse over in its area.  &lt;br /&gt;&lt;br /&gt;&lt;li&gt; &lt;b&gt;Spotlight: &lt;/b&gt; you can invoke the Spotlight menu with ⌘-space bar and type in Stata:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R4liJRC2g6I/AAAAAAAAAJw/Np62vHYK8iU/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;296&quot; width=&quot;340&quot; alt=&quot;spotlight in action&quot; align=&quot;&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Advantages:&lt;/b&gt; no mousing required.  &lt;br /&gt;&lt;p&gt;&lt;b&gt;Disadvantages:&lt;/b&gt; I&#39;m still using OS 10.4 and  Spotlight is just too slow for application launching.  It chugs when you start it up, and spends too much time finding useless files (1091 hits?).  &lt;br /&gt;&lt;br /&gt;By the way, there are two copies of the application because I have a clone backup hard drive mounted, so Spotlight sees a copy of Stata on the backup drive as well.  &lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;b&gt;Quicksilver:&lt;/b&gt; This is my preferred method for launching Stata. &lt;a href=&quot;http://blacktree.com/&quot;&gt;Quicksilver&lt;/a&gt; is an amazing utility that launches applications, runs scripts, searches folders, performs basic calculations, searches the internet, opens bookmarked pages and even modifies text files.  &lt;a href=&quot;http://docs.blacktree.com/quicksilver/what_is_quicksilver&quot;&gt;Read more about it here&lt;/a&gt;.  I am a huge advocate of this program, it&#39;s the single most useful piece of free software I&#39;ve got and that&#39;s really saying something.  &lt;br /&gt;&lt;p&gt;Quicksilver is invoked with Control-space bar and looks like this:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R4lsNxC2g_I/AAAAAAAAAKY/KyQp7wusGos/Picture%2010.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;210&quot; width=&quot;363&quot; alt=&quot;Picture 10.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;If I type in &quot;st&quot; then Stata will pop up, and I just need to press enter to launch:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R40R_BC2hDI/AAAAAAAAAK4/1aDXYRpk8hM/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;214&quot; width=&quot;364&quot; alt=&quot;Picture 2.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I can also navigate through folders, and open specific files rather than just the executable.  Let&#39;s look at an old log file:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R40SBRC2hEI/AAAAAAAAALA/p0AWeoB7IvM/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;216&quot; width=&quot;530&quot; alt=&quot;Picture 3.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;We can also perform other actions on the Stata executable like Reveal, Get Info, or move file:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R40SERC2hFI/AAAAAAAAALI/YWcvCL1YzU4/Picture%204.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;213&quot; width=&quot;363&quot; alt=&quot;Picture 4.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;And Quicksilver isn&#39;t just for applications; it takes many kinds of inputs including URLs, files and text.  Here&#39;s a quick way to copy a log file to the desktop:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R40SGBC2hGI/AAAAAAAAALQ/Ugw4AWZaiMk/Picture%205.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;212&quot; width=&quot;532&quot; alt=&quot;Picture 5.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Advantages:&lt;/b&gt; no mousing required; faster than Spotlight; allows for other actions on Stata executable (Get Info, Reveal in Finder, Display Path); quick file launch of logs and .do files; flexible.  &lt;b&gt;Disadvantages:&lt;/b&gt; can be complicated. &lt;br /&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;As you can probably tell, I&#39;m very pleased with Quicksilver&#39;s functionality and I&#39;ll deal with it more in the next few posts.  </description><link>http://macstata.blogspot.com/2008/01/launching-stata-dock-spotlight-and.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-56844760490304920</guid><pubDate>Tue, 15 Jan 2008 19:59:00 +0000</pubDate><atom:updated>2008-01-15T11:59:29.507-08:00</atom:updated><title>Learn LaTeX Online?</title><description>This seems like an interesting web application: &lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you want to &quot;test drive&quot; LaTex without downloading it, there is now a web application for you: &lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://www.monkeytex.com/&quot;&gt;Learn and Use LaTeX Online with MonkeyTex&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;When I taught statistics I learned to use &lt;a href=&quot;http://www.latex-project.org/&quot;&gt;LaTex&lt;/a&gt;, a very helpful program for typesetting equations.  While we used Stata for the in-class assignments, I used Latex constantly to create handouts, exam review sheets and homework PDFs.    For Mac, the distribution is &lt;a href=&quot;http://www.tug.org/mactex&quot;&gt;MacTex&lt;/a&gt;.  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Many scholars I know also use LaTex as a bibliography management tool, though I prefer &lt;a href=&quot;http://www.sonnysoftware.com/&quot;&gt;Bookends&lt;/a&gt; even if it&#39;s not free. </description><link>http://macstata.blogspot.com/2008/01/learn-latex-online.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-1098282032124030603</guid><pubDate>Mon, 14 Jan 2008 21:51:00 +0000</pubDate><atom:updated>2008-01-14T13:51:30.715-08:00</atom:updated><title>Recommended Mac Freeware: URLWell</title><description>I&#39;ve already mentioned three indispensible Mac freeware programs: &lt;a href=&quot;http://santasw.com/&quot;&gt;Mainmenu&lt;/a&gt; for system cleaning and maintenance, &lt;a href=&quot;http://www.nullriver.com/index/products&quot;&gt;Menushade&lt;/a&gt; for dimming the menubar, and &lt;a href=&quot;http://tech.inhelsinki.nl/antirsi/&quot;&gt;AntiRSI&lt;/a&gt; for preventing repetitive stress injuries while programming.  I have also recommended freeware options for text editing, either &lt;a href=&quot;http://www.barebones.com/products/textwrangler/&quot;&gt;Textwrangler&lt;/a&gt; or &lt;a href=&quot;http://smultron.sourceforge.net/&quot;&gt;Smultron&lt;/a&gt;.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;Another tool I use daily is &lt;a href=&quot;http://menu.jeweledplatypus.org/urlwell.html&quot;&gt;URLWell&lt;/a&gt;:&lt;br /&gt;It&#39;s a small menubar icon that allows you to drag urls in for later viewing.  This is tremendously useful for things you&#39;d like to remember, but have no desire to bookmark permanently.  Here&#39;s what it looks like (it&#39;s the @ symbol):&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R4u7NxC2hAI/AAAAAAAAAKg/lr2vq3HgC9U/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;23&quot; width=&quot;462&quot; alt=&quot;Picture 1.jpg&quot; align=&quot;center&quot; /&gt;.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Suppose I&#39;ve found a piece of software that I may want to download later.  I can just add the link to URLWell by dragging and dropping:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R4u-NBC2hCI/AAAAAAAAAKw/XNPlQl3KDCE/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;158&quot; width=&quot;450&quot; alt=&quot;Picture 3.jpg&quot; align=&quot;&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Now when I click on URLwell, it has a list of all of the sites I&#39;ve marked:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R4u8PRC2hBI/AAAAAAAAAKo/mAS8FkEMhtQ/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;125&quot; width=&quot;625&quot; alt=&quot;Picture 2.jpg&quot; align=&quot;&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;There are several nice options to clean up your list.  You can export an HTML file with links, a text list, or just open all of the pages in separate browser tabs:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;There are no keyboard shortcuts, which is too bad, but the interface couldn&#39;t be simpler.  Urls can be dragged from other applications: I most frequently use this to move blog posts from &lt;a href=&quot;http://www.newsgator.com/Individuals/NetNewsWire/&quot;&gt;NetNewsWire&lt;/a&gt; for later reading.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;Apparently the developer of URLWell disappeared, &lt;a href=&quot;http://www.freemacblog.com/what-happened-to-urlwell/&quot;&gt;much to the consternation of the Mac universe.  &lt;/a&gt;So a &lt;a href=&quot;http://menu.jeweledplatypus.org/urlwell.html&quot;&gt;kind-hearted web citizen is currently hosting a site for downloading URLWell&lt;/a&gt;.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;a href=&quot;http://menu.jeweledplatypus.org/urlwell.html&quot;&gt;URLWell link from JeweledPlatypus.org&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I&#39;m completely satisfied with URLWell, but if you are looking for more full-featured bookmarking software, the developer of Smultron has developed a similar bookmarking program called &lt;a href=&quot;http://hallon.sourceforge.net/faq.html&quot;&gt;Hallon&lt;/a&gt;.  The advantage - or disadvantage, depending on how you see it - of Hallon is that you can bookmark anything: emails, iTunes songs, blog posts, Finder folders.  That might be a little more than I need right now, though I&#39;m intrigued by the idea.  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you&#39;re wondering about the names, Smultron means &quot;Strawberry&quot; in Swedish, so his other programs are Hallon (raspberry) and Lingon (lingonberry, a Scandinavian fruit you may recognize from IKEA jams).  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;I&#39;m going to add a freeware link list on the side of the site.  Not all of them will be Stata-related, but I think they can all be helpful to Mac users.  &lt;br /&gt;&lt;br /&gt;&lt;!-- Technorati Tags Start --&gt;&lt;br /&gt;&lt;p&gt;Technorati Tags:&lt;br /&gt;&lt;a href=&quot;http://technorati.com/tag/Mac%20OS%20X&quot; rel=&quot;tag&quot;&gt;Mac OS X&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/Mac%20freeware&quot; rel=&quot;tag&quot;&gt;Mac freeware&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/URLwell&quot; rel=&quot;tag&quot;&gt;URLwell&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;!-- Technorati Tags End --&gt;</description><link>http://macstata.blogspot.com/2008/01/recommended-mac-freeware-urlwell.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-6556622503840056173</guid><pubDate>Thu, 10 Jan 2008 19:44:00 +0000</pubDate><atom:updated>2008-01-10T11:44:39.014-08:00</atom:updated><title>Quickly Creating New  .do files with DocumentPalette</title><description>&lt;p&gt;&lt;br /&gt;&lt;a href=&quot;http://www.coldpizzasoftware.com/documentpalette&quot;&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R4ZtFxC2gtI/AAAAAAAAAII/9GR9oEBu_GU/dp128.png?imgmax=800&quot; border=&quot;0&quot; height=&quot;128&quot; width=&quot;128&quot; alt=&quot;dp128.png&quot; align=&quot;center&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;a href=&quot;http://www.coldpizzasoftware.com/documentpalette&quot;&gt;DocumentPalette&lt;/a&gt; is an odd little freeware utility I discovered a few months ago.  It&#39;s definitely not something everyone will find useful, but it does provide a way of quickly creating a new Stata .do file without ever opening Stata or a text editor.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;Document Palette allows you to define file templates that can be automatically inserted into any folder.  Here&#39;s an example:&lt;br /&gt;&lt;br /&gt;I&#39;ll define a basic Stata .do file that just runs the &lt;font color = #4A8797&gt;describe&lt;/font&gt; and &lt;font color = #4A8797&gt;summarize&lt;/font&gt; commands.&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R4ZwpxC2gvI/AAAAAAAAAIY/j2vt0JrFn_M/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;226&quot; width=&quot;462&quot; alt=&quot;basic.do file&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Now I&#39;ll save that file to the desktop as &lt;font color = blue&gt;basic.do&lt;/font&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R4ZxaBC2gxI/AAAAAAAAAIo/fyuAkkiRBIw/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;345&quot; width=&quot;400&quot; alt=&quot;save file&quot; align=&quot;center&quot; /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Now we can configure DocumentPallete to make this this default Stata file for insertion in folders.  We go to preferences:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R4Zx2RC2gyI/AAAAAAAAAIw/37JeN1PIRGE/Picture%204.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;358&quot; width=&quot;400&quot; alt=&quot;DP prefs&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;We click the &quot;plus&quot; button to add a new file format and select our desktop file:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R4ZzDhC2gzI/AAAAAAAAAI4/DifxH9NrNZo/Picture%205.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;292&quot; width=&quot;400&quot; alt=&quot;adding file&quot; align=&quot;center&quot; /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;We specify that it&#39;s a Stata .do file and add a shortcut key (s):&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R4ZzYBC2g0I/AAAAAAAAAJA/-h2dUIPOZew/Picture%2010.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;408&quot; width=&quot;359&quot; alt=&quot;DP prefs again&quot; align=&quot;center&quot; /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Now it appears in our list of file formats:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R4ZzahC2g1I/AAAAAAAAAJI/Ac99xQ_CZAY/Picture%207.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;392&quot; width=&quot;437&quot; alt=&quot;new pref pane&quot; align=&quot;center&quot; /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;In a Finder window, you invoke DocumentPalette by pressing:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;⌃ - ⌥ - ⌘ - N&lt;p&gt;&lt;br /&gt;(that&#39;s Control - Option - Apple - N)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Now we insert a new Stata .do file from the DocumentPalette menu.  A transparent window pops up allowing you to insert various files in this folder:: &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R4ZzcxC2g2I/AAAAAAAAAJQ/Elb7vdLoK_U/Picture%208.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;228&quot; width=&quot;400&quot; alt=&quot;DP in action&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;And here it is in Textwrangler.  Notice the path is ~/Documents/Thesis revision/basic.do.  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R4ZzfxC2g3I/AAAAAAAAAJY/8P-4qYuo1NU/Picture%209.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;162&quot; width=&quot;400&quot; alt=&quot;new basic.do file&quot; align=&quot;center&quot; /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This may seem like a lot of work just to add a basic file template.  It is, but only at the beginning.  What makes it much more useful is the possibility of highly specific file templates.  Suppose you&#39;re doing a lot of work with the 1975 Fraternal Order of Police Survey on Gambling Enforcement (just hypothetically speaking, of course).  You can make DocumentPalette automatically insert a .do file that opens this data, opens the relevant logs, and prints some summaries.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;This isn&#39;t the sort of material you&#39;d want to write into your system .do file, because you won&#39;t &lt;i&gt;always&lt;/i&gt; be working with this dataset.  But when you are, you can add new files easily without a lot of copying, pasting or repetition.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;In the next post I&#39;ll deal with a related and, I believe, far more helpful idea: &lt;b&gt;defining Stata stationary in Textwrangler.&lt;/b&gt;</description><link>http://macstata.blogspot.com/2008/01/quickly-creating-new-do-files-with.html</link><author>noreply@blogger.com (Adam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-7215899594066000968</guid><pubDate>Tue, 08 Jan 2008 02:56:00 +0000</pubDate><atom:updated>2008-01-07T18:56:01.636-08:00</atom:updated><title>AntiRSI - Highly Recommended for Mac Stata Coders</title><description>I just recently found a piece of freeware I&#39;ll recommend to every programmer who gets glazed eyes from long stretches of coding.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;a href=&quot;http://tech.inhelsinki.nl/antirsi/&quot;&gt;AntiRSI&lt;/a&gt; is a simple program that reminds you to take breaks while working at your computer.  There are two levels of breaks: &quot;micro pauses,&quot; 15 second intervals that occur every four minutes, and &quot;work breaks,&quot; eight minute periods that occur every 50 minutes.  You can of course adjust how frequently these breaks happen.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;It&#39;s a nice piece of nagging: if you start typing or mousing before the break is over, it starts again.  You can also postpone the larger breaks if you&#39;re in the middle of something that needs to get done right.  Since it&#39;s nagging my right now, I&#39;ll take a screenshot:&lt;br /&gt;&lt;p&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R4Ll4xC2gsI/AAAAAAAAAIA/gnkcFwYf74M/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; alt=&quot;AntiRSI screenshot&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;The program is small to download ( less than 100K), takes almost no memory and does the job very well.  I&#39;ve noticed a difference since I installed this.  Just looking away from the screen for 15 seconds frequently does wonders for shoulder cramps and eyestrain.  &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://tech.inhelsinki.nl/antirsi/&quot;&gt;AntiRSI from Onne Gorter in the Netherlands - Freeware&lt;/a&gt;</description><link>http://macstata.blogspot.com/2008/01/antirsi-highly-recommended-for-mac.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-2580225243808959666</guid><pubDate>Mon, 07 Jan 2008 20:39:00 +0000</pubDate><atom:updated>2008-01-07T12:39:45.937-08:00</atom:updated><title>More on Mac (and other) Text Editors</title><description>I posted a short message about this website on &lt;a href=&quot;http://www.stata.com/support/statalist/&quot;&gt;Statalist&lt;/a&gt; the other day.  I got a few responses, including one from &lt;a href=&quot;http://fmwww.bc.edu/ec/baum.php&quot;&gt;Kit Baum&lt;/a&gt;, a professor at Boston College and a Stata Mac guru &lt;i&gt;par excellence&lt;/i&gt;.  He suggested I add a link to the Boston College Stata text editors page, so I&#39;m doing so, both on the sidebar and in this post:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://fmwww.bc.edu/repec/bocode/t/textEditors.html&quot;&gt;Notes on Stata Text Editors - Boston College&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you prefer Aquamacs or Smultron to Textwrangler, there&#39;s good information here on integration within OS X.  The site also contains a lot of general information if you&#39;re working cross-platform.  My university - and I suspect many others - has a remote PC log-in system where you can use a client like &lt;a href=&quot;http://www.citrix.com/download/ica_clients.asp&quot;&gt;Citrix&lt;/a&gt; or &lt;a href=&quot;http://www.microsoft.com/windowsxp/downloads/tools/rdclientdl.mspx&quot;&gt;Remote Desktop Connect &lt;/a&gt;to get into a Windows or Unix system on campus.   So I&#39;m necessarily switching to Windows XP temporarily to run larger jobs (the network computers have &lt;a href=&quot;http://www.stata.com/statamp/&quot;&gt;Stata/MP&lt;/a&gt;, the largest version of Stata).  </description><link>http://macstata.blogspot.com/2008/01/more-on-mac-and-other-text-editors.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-8665204226728738419</guid><pubDate>Thu, 13 Dec 2007 20:51:00 +0000</pubDate><atom:updated>2007-12-13T12:51:44.253-08:00</atom:updated><title>Advanced Step 1: Let&amp;#39;s Go to Services</title><description>If you&#39;ve used Mac OS X for any period of time, you&#39;ve probably noticed that there&#39;s a menu called &quot;Services&quot; in every application.  Here it is in Safari:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R2GT36Z3MNI/AAAAAAAAAHI/RCT2MvqMo1Y/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;415&quot; width=&quot;400&quot; alt=&quot;Services menu&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Most people never use this menu, even though it can be tremendously time-saving.  That&#39;s probably because the few useful services are lost within all the other ones, so the menu is a bit of a time waster.  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;First of all, let&#39;s reduce the number of services available.  There are a huge number that most people will never use: Chinese Text Convertor is an obvious one for me, as well as Disk Utility and Speech Items.  I think I&#39;ll remove a few more after looking at this screenshot, as I can&#39;t remember ever using &quot;Send to Bluetooth Device&quot; (I don&#39;t have any), and &quot;TextEdit&quot; and &quot;Xpad&quot; have been replaced by TextWrangler.  &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;To remove services, download the &lt;a href=&quot;http://www.manytricks.com/servicescrubber/&quot;&gt;freeware ServiceScrubber&lt;/a&gt;.  You can just de-select the irrelevant ones:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R2GVCqZ3MOI/AAAAAAAAAHQ/wgYRwDGYEwQ/Picture%205.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;256&quot; width=&quot;400&quot; alt=&quot;ServiceScrubber&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;And here it is, even more minimal than before:&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R2GXFaZ3MPI/AAAAAAAAAHY/qEA5Z47a-bA/Picture%206.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;350&quot; width=&quot;400&quot; alt=&quot;Shortened services&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Now, time to use Services.  Suppose we&#39;re browsing trying to find the right Stata code on the company website.  I&#39;d like to find some information on seasonal ARIMA models, which tend to model crime rates pretty well.  Looking around on &lt;a href=&quot;http://www.stata.com/statalist/&quot;&gt;Statalist&lt;/a&gt;, the help forum, I see a snippet of text that looks like what I&#39;m interested in: &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R2GZwaZ3MQI/AAAAAAAAAHg/_dt9lTcD9ks/Picture%207.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;320&quot; width=&quot;400&quot; alt=&quot;Statlist&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;I select the text and then look in Services:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R2GaCaZ3MRI/AAAAAAAAAHo/ETC8oeVTQCc/Picture%208.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;218&quot; width=&quot;400&quot; alt=&quot;Services in Safari&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;And once clicked, you have a new Textwrangler file with the desired text copied right in.  &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R2GaaKZ3MSI/AAAAAAAAAHw/6ynfKzj6Pbg/Picture%209.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;167&quot; width=&quot;400&quot; alt=&quot;textwrangler file&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;This comes in very handy when you&#39;re browsing and find a link you&#39;d like to add to a text file, or a quote you won&#39;t remember but want to record.  Start using Services and it will help keep the massive amounts of information organized.  You may want to just setup a file to dump all of these things into.  I use&lt;a href=&quot;http://flyingmeat.com/voodoopad/&quot;&gt; Voodoopad&lt;/a&gt; for random clippings that might be helpful or interesting but can&#39;t be read right now.&lt;br /&gt;&lt;br /&gt;&lt;!-- Technorati Tags Start --&gt;&lt;br /&gt;&lt;p&gt;Technorati Tags:&lt;br /&gt;&lt;a href=&quot;http://technorati.com/tag/Mac%20OS%20X&quot; rel=&quot;tag&quot;&gt;Mac OS X&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/Stata&quot; rel=&quot;tag&quot;&gt;Stata&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/statistical%20software&quot; rel=&quot;tag&quot;&gt;statistical software&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/text%20editors&quot; rel=&quot;tag&quot;&gt;text editors&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/TextWrangler&quot; rel=&quot;tag&quot;&gt;TextWrangler&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;!-- Technorati Tags End --&gt;</description><link>http://macstata.blogspot.com/2007/12/advanced-step-1-let-go-to-services.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-3501666247740298150</guid><pubDate>Thu, 06 Dec 2007 00:07:00 +0000</pubDate><atom:updated>2007-12-05T16:07:56.844-08:00</atom:updated><title>Aside: Keys to a Healthy Mac</title><description>If you&#39;re going to run Stata on a Mac, you need to have your Mac in good working order.  &lt;br /&gt;&lt;br /&gt;Your Mac does &lt;b&gt;not need to be fast to run Stata effectively.&lt;/b&gt;  As evidence, I present my own system specifications:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R1cmL6Z3MGI/AAAAAAAAAGQ/w4fPIm04NMk/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;379&quot; width=&quot;309&quot; alt=&quot;About this Mac&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;That&#39;s right, I have a non-Intel Mac with 0.75 G memory and a 1.33 Ghz processor.  The standards for laptops sold today are more like 2 G memory, 2+ Ghz processor.  &lt;i&gt;Nonetheless Stata works fine on my Mac.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;However, you need to have your Mac in good working order.  Here are the five steps to doing so:&lt;br /&gt;&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;li&gt;Install a cleaning program.  The best of the bunch are &lt;a href=&quot;http://www.titanium.free.fr/pgs2/english/download.html&quot;&gt;Onyx&lt;/a&gt;, &lt;a href=&quot;http://www.maintain.se/cocktail/index.php&quot;&gt;Cocktail&lt;/a&gt; and my favorite &lt;a href=&quot;http://www.santasw.com/&quot;&gt;MainMenu&lt;/a&gt;.  These programs automate the background cleaning functions that are &lt;i&gt;essential&lt;/i&gt; for keeping your Mac running well.  Most of these programs do the same set of actions: clear caches, repair permissions, run maintenance scripts, clean logs and empty trash.  The programs can also do system-related things like displaying invisible files, relaunching the finder and dock, and ejecting external drives.  Even if you&#39;re a terminal expert - I&#39;m not -  these utilities make it extremely easy to do the essential background tasks.  &lt;br /&gt;&lt;br /&gt;Here&#39;s what MainMenu looks like in the menubar:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R1c2NaZ3MHI/AAAAAAAAAGY/GOHPS3iOQo4/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;23&quot; width=&quot;496&quot; alt=&quot;Mainmenu&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;It&#39;s the &quot;set of tools&quot; icon in the center.  And here are the options:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R1c2lqZ3MII/AAAAAAAAAGg/Cof1RR4BS3w/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;391&quot; width=&quot;270&quot; alt=&quot;Mainmenu options&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Reclaim some memory.  The best way I know to do this is to disable Dashboard.  Yes, Dashboard is fun, and I like the add-on games.  But it really hogs the memory, each widget can take up as much as a medium-sized application.  Mainmenu allows you to disable Dashboard.  There are a number of other small things you can do, such as turning off Dock animation:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R1c20aZ3MJI/AAAAAAAAAGo/nVTo85YIy94/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;341&quot; width=&quot;595&quot; alt=&quot;Dock preferences&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;li&gt; BACK UP.  Everyone know this, but it&#39;s easier said than done for many people.  But there&#39;s plenty of free software that can help you do this &lt;i&gt;very easily.&lt;/i&gt;  I suggest SuperDuper, which makes a complete clone of your hard drive with preferences, spotlight indexes, everything.  Here&#39;s a shot (I&#39;m away from home so the backup drive isn&#39;t hooked up):&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R1c3XqZ3MKI/AAAAAAAAAGw/ptgrEQgKo-k/Picture%204.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;255&quot; width=&quot;536&quot; alt=&quot;Superduper&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;In order to &lt;i&gt;schedule&lt;/i&gt; backups, you need to register SuperDuper.  I&#39;m sure there are free ware options, but I just set an iCal nag to remind me to run this program from time to time.  It will save my life one day.&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Delete things from your hard drive.  If you&#39;re using a lot of memory, your computer uses some hard disk space as virtual memory.  Make sure your hard disk isn&#39;t busting at the seams.  Deleting movies and music (or moving them to a backup drive) is usually the easiest way to do this.&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Have a clean desktop.  It doesn&#39;t seem like it should make a difference, but I&#39;ve heard that it takes quite a bit of computer tower to render the graphic icons on the screen (please correct me if I&#39;m wrong, I have little technical knowledge here).  Here&#39;s my desktop, completely clear:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R1c7XaZ3MMI/AAAAAAAAAHA/xB8yhSe86rg/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;375&quot; width=&quot;500&quot; alt=&quot;Picture 1.jpg&quot; align=&quot;&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;If you don&#39;t want the drives to appear, and I don&#39;t, change the settings in Finder:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R1c53KZ3MLI/AAAAAAAAAG4/J4wCe2SLzFQ/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;426&quot; width=&quot;326&quot; alt=&quot;Finder preferences&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;For more ideas, see &lt;a href=&quot;http://www.imafish.co.uk/articles/post/articles/130/52-ways-to-speed-up-os-x/&quot;&gt;&quot;52 Ways to Speed Up OS X.&quot;&lt;/a&gt; (Hat tip to &lt;a href=&quot;http://www.Lifehacker.com/&quot;&gt;Lifehacker&lt;/a&gt;, one of my favorite blogs.)&lt;br /&gt;&lt;br /&gt;&lt;!-- Technorati Tags Start --&gt;&lt;br /&gt;&lt;p&gt;Technorati Tags:&lt;br /&gt;&lt;a href=&quot;http://technorati.com/tag/Mac%20OS%20X&quot; rel=&quot;tag&quot;&gt;Mac OS X&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/Stata&quot; rel=&quot;tag&quot;&gt;Stata&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/System%20maintenance&quot; rel=&quot;tag&quot;&gt;System maintenance&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/MainMenu&quot; rel=&quot;tag&quot;&gt;MainMenu&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/Lifehacker&quot; rel=&quot;tag&quot;&gt;Lifehacker&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/Dashboard&quot; rel=&quot;tag&quot;&gt;Dashboard&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;!-- Technorati Tags End --&gt;</description><link>http://macstata.blogspot.com/2007/12/aside-keys-to-healthy-mac.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-1577933638072127626</guid><pubDate>Wed, 28 Nov 2007 22:15:00 +0000</pubDate><atom:updated>2007-12-03T15:46:46.499-08:00</atom:updated><title>Coming Up Next: 5 Advanced Mac/Stata Tips</title><description>In the next posts, I&#39;ll cover some more advanced techniques:&lt;br /&gt;&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;br /&gt;&lt;li&gt;Using &lt;a href=&quot;http://docs.blacktree.com/quicksilver/what_is_quicksilver&quot;&gt;Quicksilver&lt;/a&gt; to quickly insert commands in a text file&lt;br /&gt;&lt;li&gt;Integrating the &lt;a href=&quot;http://www.barebones.com/products/textwrangler/&quot;&gt;TextWrangler&lt;/a&gt; services menu&lt;br /&gt;&lt;li&gt;Setting up suffix mapping in TextWrangler&lt;br /&gt;&lt;li&gt;Using &lt;a href=&quot;http://www.coldpizzasoftware.com/documentpalette/&quot;&gt;DocumentPalette&lt;/a&gt; to open Stata template files&lt;br /&gt;&lt;li&gt;Modifying Stata graph output&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(Quicksilver, TextWrangler and DocumentPalette are freeware programs that work on any version of OS X.)&lt;br /&gt;&lt;br /&gt;I&#39;m also planning to add an RSS feed button, improved formatting and hopefully some advice from more senior Mac gurus.  &lt;br /&gt;&lt;br /&gt;</description><link>http://macstata.blogspot.com/2007/11/coming-up-next-5-advanced-macstata-tips.html</link><author>noreply@blogger.com (Adam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-4708634567440710389</guid><pubDate>Wed, 28 Nov 2007 22:14:00 +0000</pubDate><atom:updated>2007-12-03T15:47:18.784-08:00</atom:updated><title>Step 5: Logging your sessions</title><description>This step is an easy one, but essential.  Stata has a log function that records all of the commands.  This gives a running record of every command you entered, whether it was typed or done in the menus.  Clearly, you may want to look back at descriptive statistics, regression diagnostics or other results to check on your work.  &lt;br /&gt;&lt;br /&gt;You can also add comments in your log, which is helpful when you read your log two months later and wonder why exactly &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;font color = #4A8797&gt;arima D.crime, ar(1) ma(1), vce(robust)&lt;/font&gt;&lt;br /&gt;&lt;p&gt; is different from &lt;br /&gt;&lt;p&gt;&lt;font color = #4A8797&gt;arima crime, arima(1,1,0) sarima(0,1,1)&lt;/font&gt;, &lt;br /&gt;&lt;br /&gt;&lt;p&gt; and which one is better.&lt;br /&gt;&lt;br /&gt;So you can add comments to explain this to your future self by typing the * before some explanation, like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;font color = #4A8797&gt;arima D.crime, ar(1) ma(1), vce(robust)&lt;/font&gt;&lt;br /&gt;&lt;p&gt;* This command models a differenced time-series with first-order autoregression with robust standard error estimation&lt;br /&gt;&lt;p&gt;&lt;font color = #4A8797&gt;arima crime, arima(1,1,0) sarima(0,1,1)&lt;/font&gt;&lt;br /&gt;&lt;p&gt;* This command models a seasonally differenced series with a seasonal moving average and first-order autoregression.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The best way to read old logs is in the Stata viewer, because it highlights and formats everything quite naturally.  &lt;br /&gt;&lt;br /&gt;You can log in the command window by just typing:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;font color = #4A8797&gt;log using FILENAME&lt;/font&gt; &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;However, because you need the full extension, it&#39;s usually easier to click the log button:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R03cvUgdm9I/AAAAAAAAAFw/bfOoSaALp6g/Picture%2011.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;55&quot; width=&quot;430&quot; alt=&quot;Stata menubar&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R03dBUgdm-I/AAAAAAAAAF4/wEygUJlHhUI/Picture%2014.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;144&quot; width=&quot;92&quot; alt=&quot;Log button&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R03n5Ugdm_I/AAAAAAAAAGA/ivlCr0yuubo/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;490&quot; width=&quot;500&quot; alt=&quot;Picture 2.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Notice that you can append logs onto already existing files.  This is handy if you want a complete running record of everything you did with a specific dataset.  &lt;br /&gt;&lt;br /&gt;I&#39;d like to figure out how to make date-specific log files, but I don&#39;t have it working quite yet.  &lt;br /&gt;&lt;br /&gt;Incorporating the current date and time is &lt;a href=&quot;http://www.stata.com/support/faqs/data/dateandtime.html&quot;&gt;explained more fully on this page from the Stata site.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Those are the basic five steps.  Next we&#39;ll deal with &lt;b&gt;5 advanced Mac/Stata tips.&lt;/b&gt;</description><link>http://macstata.blogspot.com/2007/11/step-5-logging-your-sessions.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-2263746277470157273</guid><pubDate>Wed, 28 Nov 2007 21:22:00 +0000</pubDate><atom:updated>2007-11-28T13:22:31.732-08:00</atom:updated><title>Step 4: Importing unformatted data</title><description>If you&#39;re lucky, you&#39;ll never have to deal with unformatted data.  You&#39;ll just cruise to ICPSR or the local library and get your data in pre-formatted, machine-readable files with no errors, complete dictionary and label files, and lots of documentation.  &lt;br /&gt;&lt;br /&gt;That&#39;s exactly what I did for four years.  Then I ran across an old, useful piece of data that had never before been put into a statistics package.&lt;br /&gt;&lt;br /&gt;That&#39;s an exciting moment.  While the General Social Survey has been combed over (and over and over) by social scientists, including me, it&#39;s nice to find a new dataset that hasn&#39;t been mined very heavily.  Either that means it&#39;s a dud, or just that no one bothered with it and you may find something new.  &lt;br /&gt;&lt;br /&gt;Here&#39;s what the data looked like when I opened it:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;0001124352540000000000000000000000000000000000000&lt;p&gt;000222223225202022222322120200001222232322520202223232212020&lt;p&gt;371141530500000000000000140010021803&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Hmm.&lt;br /&gt;&lt;br /&gt;No commas, no spaces, and no file to read all of this into Stata (or SPSS or anything else).  &lt;br /&gt;&lt;br /&gt;However, there was a paper codebook that explained what all of this meant.  The first four digits are the ID; the next is the card number; the next is the opinions of Fraternal Order of Police members on the severity of illegal bookmaking on a 1-to-4 &lt;a href=&quot;http://www.socialresearchmethods.net/kb/scallik.php&quot;&gt;Likert scale&lt;/a&gt;.  And so on.  &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;font color = #4A8797&gt;infix dictionary {&lt;/font&gt;&lt;br /&gt;&lt;p&gt;* imports Fraternal Order of Police Study from 1975 Gambling Commission Study&lt;br /&gt;&lt;p&gt;	2 lines&lt;br /&gt;&lt;p&gt;	1:&lt;br /&gt;		ID 1-4 &lt;p&gt;&lt;br /&gt;		card 5 &lt;p&gt;&lt;br /&gt;		serbook 7 &lt;p&gt;&lt;br /&gt;		serlarc 8 &lt;p&gt;&lt;br /&gt;		sernumb 9 &lt;p&gt;&lt;br /&gt;		serpot 10 &lt;p&gt;&lt;br /&gt;		sercard 11 &lt;p&gt;&lt;br /&gt;		serfence 12 &lt;p&gt;&lt;br /&gt;		serhook 13 &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;And we&#39;re off!  By the way, &quot;2 lines&quot; is a Stata command indicating that a data records runs longer than a single line.  &lt;br /&gt;&lt;br /&gt;From here there are two ways to go:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;First way:&lt;/b&gt;&lt;br /&gt;&lt;li&gt;Save the file as a .dct file, meaning it&#39;s a data dictionary&lt;br /&gt;&lt;li&gt;Use the infix menu in Stata (under File)&lt;br /&gt;&lt;li&gt;Specify the location of the raw data file and the dictionary file:&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R03awEgdm7I/AAAAAAAAAFg/qcXGTL6CJsE/Picture%2010.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;118&quot; width=&quot;618&quot; alt=&quot;Stata File Menu&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R03a2kgdm8I/AAAAAAAAAFo/BJSzCOl2d0c/Picture%209.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;377&quot; width=&quot;445&quot; alt=&quot;Picture 9.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Second way (preferred for me):&lt;/b&gt;&lt;br /&gt;&lt;li&gt;Paste the raw data into the file below the dictionary&lt;br /&gt;&lt;li&gt;Save the file as a .do file&lt;br /&gt;&lt;li&gt;Run it in Stata&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;At this point, everything should be fine.  Of course, you&#39;ll make mistakes the first few times, and need to re-run things.  &lt;br /&gt;&lt;br /&gt;Next time I&#39;ll address &lt;b&gt;Step 5: Logging your sessions.&lt;/b&gt;</description><link>http://macstata.blogspot.com/2007/11/step-4-importing-unformatted-data.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-2668578301020785261</guid><pubDate>Wed, 28 Nov 2007 20:40:00 +0000</pubDate><atom:updated>2007-11-28T12:40:00.481-08:00</atom:updated><title>Step 3: Choosing an External Text Editor</title><description>Stata provides many ways for interacting with the program.  You can use the drop down menus, of course.  You can write your commands in the Command window.  Or you can use Stata&#39;s built-in .do file editor, like so:&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R0sKQEgdmrI/AAAAAAAAADg/CZlGfrzUmjo/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;40&quot; width=&quot;427&quot; alt=&quot;Picture 2.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R0sKSUgdmsI/AAAAAAAAADo/t2bPrnpfha0/Picture%201.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;40&quot; width=&quot;27&quot; alt=&quot;Picture 1.jpg&quot; align=&quot;center&quot; /&gt; The notepad button opens a new do file&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R0sKUkgdmtI/AAAAAAAAADw/3Xed9-bpKlY/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;305&quot; width=&quot;440&quot; alt=&quot;Picture 3.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;However, I&#39;ll suggest that you use an external text editor instead of the built-in text editor.  &lt;br /&gt;&lt;br /&gt;I&#39;m not a snob about this.  I still use the menus for many commands, especially new ones I&#39;m not familiar with.  However, eventually you&#39;ll have to write long files to:&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Label (&lt;font color = #4A8797&gt;label var &lt;/font&gt;command)&lt;br /&gt;&lt;li&gt; Import (&lt;font color = #4A8797&gt;infix&lt;/font&gt; or &lt;font color = #4A8797&gt;infile&lt;/font&gt; command)&lt;br /&gt;&lt;li&gt; Define variable values (&lt;font color = #4A8797&gt;label var def&lt;/font&gt; command)&lt;br /&gt;&lt;li&gt; Summarize (&lt;font color = #4A8797&gt;summ/desc/codebook &lt;/font&gt;commands)&lt;br /&gt;&lt;br /&gt;Using a text editor is easier for the following reasons:&lt;br /&gt;&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;li&gt; Text editors make search-and-replace easier if you make a systematic mistake&lt;br /&gt;&lt;li&gt; Text editors allow you to have Stata closed while writing&lt;br /&gt;&lt;li&gt; Text editors (at least the ones outlined here) highlight syntax, which is invaluable for checking your code&lt;br /&gt;&lt;li&gt; Text editors just have more options than the built-in editor (keyboard shortcuts, multiple views, ready-made templates)&lt;br /&gt;&lt;li&gt; Text editors, as the name might suggest, make editing existing .do and .dct files much easier&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;As far as available editors for Mac, there are many.  Look around &lt;a href=&quot;http://versiontracker.com/&quot;&gt;VersionTracker&lt;/a&gt; and you&#39;ll find all sorts of free or cheap options, like  &lt;a href=&quot;http://www.codingmonkeys.de/subethaedit/&quot;&gt;SubEthaEdit&lt;/a&gt;, &lt;a href=&quot;http://www.barebones.com/products/textwrangler/&quot;&gt;TextWrangler&lt;/a&gt;, &lt;a href=&quot;http://smultron.sourceforge.net/&quot;&gt;Smultron&lt;/a&gt;, &lt;a href=&quot;http://macvim.org/OSX/index.php&quot;&gt;Vim&lt;/a&gt;, and lots of others.  &lt;br /&gt;&lt;br /&gt;If you&#39;re willing to pay a bit more, there are &lt;b&gt;very&lt;/b&gt; full-featured programs like &lt;a href=&quot;http://www.barebones.com/products/bbedit/&quot;&gt;BBEdit&lt;/a&gt; ($49 US educational, $125 otherwise) and &lt;a href=&quot;http://macromates.com/&quot;&gt;TextMate&lt;/a&gt; (39 Euros).  Although these are impressive, they are geared much more towards professional web developers and are, in my opinion, a bit of overkill for Stata.  &lt;br /&gt;&lt;br /&gt;I can&#39;t say I&#39;ve tried all of these, of course.  But I&#39;ve experimented with a number of editors, including the built-in TextEdit, Taco Edit, Aquamacs, Smultron and TextWrangler.  &lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;Unlike some built-in OS X software, TextEdit isn&#39;t too impressive.  There are far better choices for free.  &lt;br /&gt;&lt;hr&gt;&lt;br /&gt;Taco Edit is really designed for HTML coding, not other languages.&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;Aquamacs is pretty good, some people really swear by it, including many of the skilled and serious programmers I know.  The main objection I had was that it was much more difficult to integrate with Stata.  You need to install a series of .ado files into Stata to make Aquamacs work as an external editor.  &lt;a href=&quot;http://www.bellarmine.edu/faculty/wrising/Stata/&quot;&gt;Read this if you&#39;re interested.  &lt;/a&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;I haven&#39;t tried Vim.&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;So we&#39;re down to two contenders: &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Smultron (open-source, freeware)&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh3.google.com/adam.d.jacobs/R0sLjkgdmuI/AAAAAAAAAD4/ak_T2hkKJ9o/images.jpeg?imgmax=800&quot; border=&quot;0&quot; height=&quot;78&quot; width=&quot;75&quot; alt=&quot;Smultron icon&quot; align=&quot;center&quot; /&gt; &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Smultron is nice.  It has a pleasant Cocoa interface.  It handles multiple open files easily.  It doesn&#39;t take much memory.  Here&#39;s a screenshot:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R03HsUgdm1I/AAAAAAAAAEw/arfl7JXsdM0/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;120&quot; width=&quot;500&quot; alt=&quot;Picture 2.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;TextWrangler (non-open-source, freeware)&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R0sIK0gdmqI/AAAAAAAAADY/KoIid2J1l08/images-1.jpeg?imgmax=800&quot; border=&quot;0&quot; height=&quot;91&quot; width=&quot;91&quot; alt=&quot;TextWrangler icon&quot; align=&quot;center&quot; /&gt; &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;However, I&#39;m going to recommend TextWrangler, the free version of BBEdit developed by Bare Bones Software.  Here&#39;s what it looks like:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R03Nqkgdm2I/AAAAAAAAAE4/RA5V7hB10qo/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;100&quot; width=&quot;500&quot; alt=&quot;TextWrangler&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Most importantly, TextWrangler integrates extremely easily with Stata:&lt;br /&gt;&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;br /&gt;&lt;li&gt;Save a file with a .do extension, and TextWrangler will immediately recognize it as a file that should be formatted according to Stata syntax and run in Stata.app&lt;br /&gt;&lt;li&gt;The defaults can be set so new files are always formatted as .do files&lt;br /&gt;&lt;li&gt;Once you&#39;ve saved a .do file, you can quickly run it in Stata like this:&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R03QQ0gdm4I/AAAAAAAAAFI/nPuTM4OPKqI/Picture%205.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;44&quot; width=&quot;122&quot; alt=&quot;Picture 5.jpg&quot; align=&quot;center&quot; /&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;Click the button on the right and the file will pop up in the Finder window:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R03RFUgdm6I/AAAAAAAAAFY/OApwKbduLNM/Picture%207.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;180&quot; width=&quot;352&quot; alt=&quot;Picture 7.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Double-click the file in Finder and it will immediately run in Stata; if Stata is closed, it will immediately open it and run it.  &lt;br /&gt;&lt;br /&gt;And here&#39;s a really nice feature: at the bottom of TextWrangler, you can select your language and it will immediately recognize the command words.  So if you need to do some website editing in CSS or HTML (as I sometimes do), TextWrangler is very helpful for that as well.  &lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R03OI0gdm3I/AAAAAAAAAFA/HjnzRtqABbM/Picture%204.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;400&quot; width=&quot;160&quot; alt=&quot;Picture 4.jpg&quot; align=&quot;center&quot; /&gt; &lt;br /&gt;&lt;br /&gt;While you can&#39;t go wrong with either Smultron or TextWrangler, I&#39;d recommend the latter as a free, full-featured, do-it-all program for Stata coding.&lt;br /&gt;&lt;br /&gt;Next installment will deal with &lt;b&gt;Step 4: Importing Unformatted Data&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- Technorati Tags Start --&gt;&lt;br /&gt;&lt;p&gt;Technorati Tags:&lt;br /&gt;&lt;a href=&quot;http://technorati.com/tag/Smultron&quot; rel=&quot;tag&quot;&gt;Smultron&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/Stata&quot; rel=&quot;tag&quot;&gt;Stata&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/TextWrangler&quot; rel=&quot;tag&quot;&gt;TextWrangler&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/Mac%20OS%20X&quot; rel=&quot;tag&quot;&gt;Mac OS X&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/text%20editors&quot; rel=&quot;tag&quot;&gt;text editors&lt;/a&gt;, &lt;a href=&quot;http://technorati.com/tag/statistical%20software&quot; rel=&quot;tag&quot;&gt;statistical software&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;!-- Technorati Tags End --&gt;</description><link>http://macstata.blogspot.com/2007/11/step-3-choosing-external-text-editor.html</link><author>noreply@blogger.com (Adam)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-225578404598449211</guid><pubDate>Wed, 28 Nov 2007 18:43:00 +0000</pubDate><atom:updated>2007-11-28T10:43:05.669-08:00</atom:updated><title>Step 2: Setting up a profile.do file</title><description>One thing you&#39;ll find in your &quot;Getting Started in Stata&quot; manual is a brief explanation of setting up a profile.do file.  Briefly, this is a file that&#39;s run every time Stata is started.  So if you &lt;b&gt;always&lt;/b&gt; want to perform certain actions - start a log, set the memory, change the working directory - this is the place to do it.  &lt;br /&gt;&lt;br /&gt;There are three steps to setting a profile.do file:&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;br /&gt;&lt;li&gt; Write a do-file&lt;br /&gt;&lt;li&gt; Save it in the appropriate location (more on this in a moment)&lt;br /&gt;&lt;li&gt; Restart Stata and check to Results window&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;To write a do-file in Stata&#39;s built-in editor, go to the File menu:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R02u-UgdmvI/AAAAAAAAAEA/8OFW252znyE/Picture%202.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;475&quot; width=&quot;283&quot; alt=&quot;Stata file menu&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;(I&#39;ll discuss using an external text editor in the next installment)&lt;br /&gt;&lt;br /&gt;You&#39;ll see a blank file like this:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R02vZ0gdmwI/AAAAAAAAAEI/y7zjYR8LwEE/Picture%203.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;305&quot; width=&quot;440&quot; alt=&quot;Blank do file&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Next we&#39;ll write a few commands.  Remember these are things you want Stata to do &lt;b&gt;every time you open it.&lt;/b&gt;  Unless you exclusively work with one dataset, I wouldn&#39;t suggest opening it through the do-file.  This is more &quot;background&quot;: how much memory do you want allocated, where do you want the working directory, things that won&#39;t change often.  &lt;br /&gt;&lt;br /&gt;Here&#39;s our simple do-file:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh4.google.com/adam.d.jacobs/R02wdUgdmxI/AAAAAAAAAEQ/j3P83JKd4gc/Picture%204.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;305&quot; width=&quot;439&quot; alt=&quot;Simple do file text&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;It does three things: &lt;br /&gt;&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;li&gt;Sets the memory to 20m (the default is 1m).  This can be done in the regular preferences pane also.&lt;br /&gt;&lt;li&gt;Changes the working directory from &quot;/Documents&quot; to &quot;/Documents/stata work/&quot;&lt;br /&gt;&lt;li&gt;Checks for updates to the executable and the .ado files.&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;Now, &lt;i&gt;most importantly,&lt;/i&gt; you need to save the .do file in the right location.  &lt;b&gt;It needs to reside in the Libraries/Application Support/Stata directory:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh6.google.com/adam.d.jacobs/R021o0gdmyI/AAAAAAAAAEY/PxDyQeuIzBU/Picture%205.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;215&quot; width=&quot;641&quot; alt=&quot;Profile in directory&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Re-start Stata and you should see something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://lh5.google.com/adam.d.jacobs/R022hkgdmzI/AAAAAAAAAEg/MaaYIxCZiHc/Picture%206.jpg?imgmax=800&quot; border=&quot;0&quot; height=&quot;87&quot; width=&quot;490&quot; alt=&quot;Picture 6.jpg&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Success, the profile.do file is running as it should.  &lt;br /&gt;&lt;br /&gt;Next we&#39;ll deal with &lt;b&gt;Step 3: Choosing an External Text Editor&lt;/b&gt;</description><link>http://macstata.blogspot.com/2007/11/step-2-setting-up-profiledo-file_28.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-3153498769075460239</guid><pubDate>Mon, 19 Nov 2007 19:00:00 +0000</pubDate><atom:updated>2008-12-10T04:57:25.669-08:00</atom:updated><title>Step 1: Installation and a Working Directory</title><description>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfpmUwrfTU3IFiyOhuWlLyjT8hh_KC1eXqXobQB5QkcyLwhA7puKnllw5ltbwqTmBJAL_YOl5aoTFcSbShRiAeLcrDbvOVMHUi0oX-wUbwoiatPnqzMjfS881ohzd60Klwb7VRpIs2jNE/s1600-h/Picture+1.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfpmUwrfTU3IFiyOhuWlLyjT8hh_KC1eXqXobQB5QkcyLwhA7puKnllw5ltbwqTmBJAL_YOl5aoTFcSbShRiAeLcrDbvOVMHUi0oX-wUbwoiatPnqzMjfS881ohzd60Klwb7VRpIs2jNE/s320/Picture+1.jpg&quot; border=&quot;0&quot; alt=&quot;Let&#39;s set some preferences&quot;id=&quot;BLOGGER_PHOTO_ID_5134632218166925858&quot; /&gt;&lt;/a&gt;&lt;br /&gt;So you&#39;ve secured your copy of Stata for Mac OS X.  Installation is pretty simple and there isn&#39;t a lot to it.  You insert the CD and follow the standard procedure with Mac OS X installation packages.  &lt;br /&gt;&lt;br /&gt;One slight difference from other applications is that rather than installing in ~/Applications, Stata installs in ~Applications/Stata/.  Not a lot to say about this.  I have occasionally had a problem where I update the executable (more on this in the next installation) and it disappears from the dock temporarily.  But otherwise everything works fine.  &lt;br /&gt;&lt;br /&gt;What you should do next is create a reasonable working directory.  I believe Stata starts you out in either /Documents or /Applications/Stata, neither of which is ideal.  Here&#39;s mine at startup:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz3BRkGhpIMiL5he2yj_Reo5kbG9AvCB4OwbOd0kauqLBjhpRxrc-fwofOPMWAf_JGk_0QtBRWIXKnHHqUPoNJrZz_fWb7CWTMNmz4aDZbwQMsoUCPEdUVS2qiGtiFN_ut6imwk7oJIKU/s1600-h/Stata+menubar.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz3BRkGhpIMiL5he2yj_Reo5kbG9AvCB4OwbOd0kauqLBjhpRxrc-fwofOPMWAf_JGk_0QtBRWIXKnHHqUPoNJrZz_fWb7CWTMNmz4aDZbwQMsoUCPEdUVS2qiGtiFN_ut6imwk7oJIKU/s400/Stata+menubar.jpg&quot; border=&quot;1&quot; alt=&quot;Stata at startup&quot;id=&quot;BLOGGER_PHOTO_ID_5134629778625501682&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this installment, we&#39;ll:&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;ol type=&quot;1&quot;&gt;&lt;li&gt;Create a specific &quot;Stata work&quot; folder, with subfolders for projects &lt;/li&gt;&lt;br /&gt;&lt;li&gt;Change the working directory&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Change the defaults so the working directory is always &quot;Stata work&quot; &lt;/ol&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here&#39;s how: &lt;br /&gt;&lt;br /&gt;&lt;li&gt; If you&#39;re a mac user, you probably know how to create a directory.  Go to &quot;Documents&quot; in the finder and select &quot;New folder.&quot;  Like this:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz2ogOMkXpdzLy7MbyJ0vIhnSwUJ6g60vjjbQ-_NpsXqIivwyJQM2zSAlKHFxr4GQnXRwg7ua-whWMCXMLF3ZY5dI3k50BV1gEa8e7HzIz716gKv6q0yTJrfcnw27utLmjpjPhuS5ivgY/s1600-h/Picture+1.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz2ogOMkXpdzLy7MbyJ0vIhnSwUJ6g60vjjbQ-_NpsXqIivwyJQM2zSAlKHFxr4GQnXRwg7ua-whWMCXMLF3ZY5dI3k50BV1gEa8e7HzIz716gKv6q0yTJrfcnw27utLmjpjPhuS5ivgY/s320/Picture+1.jpg&quot; border=&quot;1&quot; alt=&quot;Finder screenshot&quot;id=&quot;BLOGGER_PHOTO_ID_5134631045640854034&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; There are three  ways to change the working directory: &lt;br /&gt;&lt;br /&gt;&lt;ol type = &quot;1&quot;&gt;&lt;li&gt; Stata draws heavily from pre-windows command line (DOS and UNIX) structure; if you&#39;re comfortable with that, simply use the &quot;&lt;b&gt;cd&lt;/b&gt;&quot; command from DOS (meaning &quot;&lt;b&gt;C&lt;/b&gt;hange &lt;b&gt;D&lt;/b&gt;irectory&quot;) and type in the path.  For example:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;blockquote&gt;cd &quot;/Users/adamjacobs/Documents/Stata work/&quot;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNlbujtRvNLVZpSxZNYzNlBGDz2CkkpFuzTbGQhvHOS-IVrFbvDtGclmjNvQLQiz6D2YpjWYFWAj9lIb_yrQC-4OW7dLGrBnxdX0wtgCY42v4312bKHpGVNMem7Vt6PWyyEeYO-3sdYPI/s1600-h/Picture+4.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNlbujtRvNLVZpSxZNYzNlBGDz2CkkpFuzTbGQhvHOS-IVrFbvDtGclmjNvQLQiz6D2YpjWYFWAj9lIb_yrQC-4OW7dLGrBnxdX0wtgCY42v4312bKHpGVNMem7Vt6PWyyEeYO-3sdYPI/s400/Picture+4.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5134634584693906002&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdu7dO7vlIRptYM_5DsD6BtptD6Et60KFLWM5TlQqjAe5wQCilip1tgdyiX2uiqSJvU6KvJ2Wxasq7dJIWFKXS97EtgBnJZUEG9sXbOToEbcSfYbbHOKZiSOyPLc_5gsm4s9gn4rMMqz4/s1600-h/Picture+5.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdu7dO7vlIRptYM_5DsD6BtptD6Et60KFLWM5TlQqjAe5wQCilip1tgdyiX2uiqSJvU6KvJ2Wxasq7dJIWFKXS97EtgBnJZUEG9sXbOToEbcSfYbbHOKZiSOyPLc_5gsm4s9gn4rMMqz4/s400/Picture+5.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5134634670593251938&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;However, most people will be more comfortable, and less error-prone, with the menu.  Go to File ➡ Change Working Directory.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4JnpEawOdM9RFgL8dNxFYhg5u5oXZq-ziY1a0Kdax5qO6LytxefOXLU_6o4O1M2Av56wTLPYe30TmxJNSewYroHVfeC6YXwqIHt5JAMhQiJrGB1xjmu8XOnFTIKUvG3ZyV8EnoOdjX1A/s1600-h/Picture+2.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4JnpEawOdM9RFgL8dNxFYhg5u5oXZq-ziY1a0Kdax5qO6LytxefOXLU_6o4O1M2Av56wTLPYe30TmxJNSewYroHVfeC6YXwqIHt5JAMhQiJrGB1xjmu8XOnFTIKUvG3ZyV8EnoOdjX1A/s320/Picture+2.jpg&quot; border=&quot;1&quot; alt=&quot;Stata File menu&quot;id=&quot;BLOGGER_PHOTO_ID_5134630109337983490&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;* Note: the menubar is dark because I&#39;m using a utility called &lt;a href=&quot;http://www.nullriver.com/index/products&quot;&gt;MenuShade&lt;/a&gt; that dims the menubar while you&#39;re working.  I recommend this for users who want to save their monitors and focus better while writing.  &lt;br /&gt;&lt;br /&gt;&lt;li&gt;If you prefer keyboard shortcuts, and I often do, the command is &lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;b&gt;⌘⇧J&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt; I&#39;m not sure why it&#39;s J, something like C would make more sense.  &lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;As for changing the defaults  to always recognize this working directory, I&#39;ll cover that in the next step: &lt;b&gt;Setting up a profile.do file.&lt;/b&gt;</description><link>http://macstata.blogspot.com/2007/11/step-1-installation-and-working.html</link><author>noreply@blogger.com (Adam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfpmUwrfTU3IFiyOhuWlLyjT8hh_KC1eXqXobQB5QkcyLwhA7puKnllw5ltbwqTmBJAL_YOl5aoTFcSbShRiAeLcrDbvOVMHUi0oX-wUbwoiatPnqzMjfS881ohzd60Klwb7VRpIs2jNE/s72-c/Picture+1.jpg" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-6230419478859959367</guid><pubDate>Fri, 16 Nov 2007 19:35:00 +0000</pubDate><atom:updated>2007-11-16T11:35:47.546-08:00</atom:updated><title>Step 0: Why Stata?</title><description>I&#39;m going to cover the basic steps of setting up stata on a Mac, including specifying the working directory, editing and placing the profile.do file, selecting an external text editor and logging your work.  However, I thought I&#39;d start with the larger question: why use Stata in the first place?&lt;br /&gt;&lt;br /&gt;Stata is hardly the only option in social science statistics software.  At the very least, you could consider &lt;a href=&quot;http://www.sas.com/technologies/analytics/statistics/index.html&quot;&gt;SAS&lt;/a&gt;, &lt;a href=&quot;http://www.r-project.org/&quot;&gt;The R Project&lt;/a&gt;, &lt;a href=&quot;http://www.minitab.com/&quot;&gt;Minitab&lt;/a&gt;, &lt;a href=&quot;http://www.spss.com/&quot;&gt;SPSS&lt;/a&gt;, &lt;a href=&quot;http://www.insightful.com/&quot;&gt;S-Plus&lt;/a&gt;, &lt;a href=&quot;http://www.statmodel.com/&quot;&gt;MPlus&lt;/a&gt;, not to mention more specialized forms of modeling software like &lt;a href=&quot;http://www.ssicentral.com/&quot;&gt;HLM (hierarchical linear modeling) and LISREL (structural equation modeling)&lt;/a&gt;.  &lt;br /&gt;&lt;br /&gt;However, for Mac users there are considerably fewer options: &lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;Here&#39;s the simple part: SAS, Minitab, HLM, Lisrel, MPlus, and S-Plus don&#39;t develop for OS X.  Yes, I know there are Intel Macs that can run Windows, but that&#39;s not what this website is about.  I am among those who still have an old PowerPC Mac; moreover, if I upgrade, I&#39;d rather keep doing my data analysis in OS X.  &lt;br /&gt;&lt;br /&gt;Many people have told me R is the future.  It is free, open-source and offers incredibly robust graphics features.  I believe it.  However, R is largely a programming environment.  It is not primarily a data analysis package.  I&#39;ve tried it once or twice but I just never felt comfortable.  I&#39;d suggest R for only tech-oriented people very comfortable with programming.  If you still need drop-down menus and extensive help files to do anything in statistics (and I do), I wouldn&#39;t recommend R.  &lt;br /&gt;&lt;br /&gt;This leaves us with the big players in the statistical software market: SPSS and Stata.  &lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Stata&lt;/b&gt; offers four different versions: Small, Intercooled, SE, and MP.  &lt;a href=&quot;http://www.stata.com/products/whichstata.html&quot;&gt;This page from the Stata website outlines the differences&lt;/a&gt;.  &lt;br /&gt;&lt;br /&gt;&lt;li&gt; Small Stata is for teaching environments only - you&#39;re limited to 99 variables and 1,000 observations.  &lt;br /&gt;&lt;li&gt; Stata MP is for multi-processor environments, either newer dual-core computers or servers.  With an older PowerPC laptop this was not an option.  It&#39;s also rather unnecessary because it&#39;s largely designed for parallel processing.&lt;br /&gt;&lt;li&gt; Stata SE is the larger version of Intercooled.  The main difference is that is allows ~32,000 (2^15) variables instead of ~2,000 (2^11) for Intercooled.  SE also allows you to include up to 11,000 variables in a regression (!).  &lt;br /&gt;&lt;li&gt; Intercooled Stata is what most people will be purchasing.  It allows an unlimited number of observations, 2,047 variables and 800 variables in a regression.  In practice, I&#39;ve never had any limitations with Intercooled Stata.  Even with large social science datasets, it&#39;s rare to deal with more than 2,000 variables; even the largest ICPSR datasets like the &lt;a href=&quot;http://www.norc.org/projects/General+Social+Survey.htm&quot;&gt;General Social Survey&lt;/a&gt; don&#39;t usually contain that many.&lt;br /&gt;&lt;br /&gt;All version of Stata include a full range of data analysis options.  There are no add-ons or extra modules to purchase.  This includes basic functions like descriptive statistics, graphics, and many forms of regression: linear, logistic, multinomial, poisson, GLM, ANOVA, ordered logistic and others. It also includes tools for time-series, event history analysis, multidimensional scaling, survey data, panel data, and robust standard error techniques like bootstrap and jackknife.  &lt;br /&gt;&lt;br /&gt;Stata also archives many user-submitted programs; these can be accessed through a simple search in the main window.  It&#39;s a quasi-open-source structure: the software is proprietary but people submit add-ons that are freely distributed.  &lt;br /&gt;&lt;br /&gt;Intercooled Stata is available for $155 US with an educational discount.  If you only want a one-year license (i.e. you&#39;re working on a limited-time project and know you won&#39;t need the software long-term) you can buy a one-year license for $95.  &lt;br /&gt;&lt;br /&gt;Stata comes with a small manual, &quot;Getting Started With Stata for Macintosh.&quot;  It covers the basics like file management and help as well as how to interact with your data.  It&#39;s short but quite useful.  There is a much larger set of Stata manuals that you can purchase separately, but I haven&#39;t bothered.  &lt;br /&gt;&lt;br /&gt;Stata offers a completely full featured package with excellent document for a very reasonable price.  For comparison&#39;s sake, it&#39;s roughly the same cost as &lt;a href=&quot;http://www.apple.com/macosx/&quot;&gt;an upgrade to OS X 10.5&lt;/a&gt;.  But what about the competition?&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SPSS&lt;/b&gt; is available for Mac, and it appears they now develop the versions concurrently for Mac/Windows/Linux instead of lagging the Mac versions behind.  However, the real drawback of SPSS is simple: price.  &lt;br /&gt;&lt;br /&gt;Let&#39;s take a look at the &lt;a href=&quot;http://www.spss.com/stores/1/&quot;&gt;SPSS web store&lt;/a&gt;: thankfully I&#39;ll receive the higher education discount.  That means the SPSS base system will &lt;i&gt;only&lt;/i&gt; cost $619 US.  Pretty high for a starting point.  But wait, suppose I want to continue with an interrupted time-series analysis project I&#39;ve been working on regarding crime rates in Atlantic City, NJ?  I suppose I&#39;d need SPSS Trends for another $519.  Even worse, if I want basic maximum likelihood estimation models like logistic regression, I&#39;ll need to buy SPSS regression models for &lt;b&gt;another&lt;/b&gt; $519.  Remember this is &lt;u&gt;with the educational discount&lt;/u&gt; and we&#39;re already talking about ~$1700 in software costs.  &lt;br /&gt;&lt;br /&gt;As you can imagine, the pricing continues like this.  Would you like generalized linear model options?  You guessed it, another $519 for that module.   How about correspondence analysis and multi-dimensional scaling?  For that option, the bargain basement price is only $419.  &lt;br /&gt;&lt;br /&gt;In spite of all this, I&#39;m not completely opposed to SPSS.  When I started out in graduate school and wrote my master&#39;s thesis, SPSS was a nice first option for dealing with logistic regression models and descriptive statistics.  I&#39;ve also used it in summer statistics workshops at ICPSR and been satisfied with its functionality.  However, in both of those situations, the university had already paid to have all of the modules included; it wasn&#39;t until recently that I learned about the piece-by-piece pricing structure.&lt;br /&gt;&lt;br /&gt;If you are purchasing a statistics package for yourself, there&#39;s no way I can recommend SPSS.  The price is just unreasonable, and I really dislike the idea of separate modules that you need to purchase in addition.  The non-university prices are even more prohibitive: the base system starts at $1600!  &lt;br /&gt;&lt;br /&gt;If you&#39;re still dubious, look at this &lt;a href=&quot;http://www.weborial.com/macstats/Software/stata.html&quot;&gt;MacStats review of Stata versus SPSS&lt;/a&gt;: &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;There are some reasons why SPSS for the Mac is not a viable long-term option for many people, even though it’s easier to explore than most stats programs. Mac versions lag behind Windows versions, and the user interface has quirks, bugs, odd crashes and pauses, and problems working with other programs. The price is absurd, and on top of the excessive cost for the base package, most users will need extra modules, each of which costs about as much as Stata – and they charge for module upgrades, too. Finally, there might not even be another version of SPSS for the Mac, and if there is, it might not work with new or old computer. Even now, there is no version of SPSS for Intel Macs.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;Stata is the most full-featured, affordable and Mac-friendly statistical package available, and it&#39;s really not even close.  Next post I&#39;ll discuss the basics of installation and setting up a working directory, with screenshots included.  </description><link>http://macstata.blogspot.com/2007/11/step-0-why-stata.html</link><author>noreply@blogger.com (Adam)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4662199323694440329.post-2279089086124244045</guid><pubDate>Fri, 16 Nov 2007 04:32:00 +0000</pubDate><atom:updated>2007-11-15T20:32:44.602-08:00</atom:updated><title>The Raison D&amp;#39;Etre</title><description>This blog covers Mac integration on Stata.  That&#39;s all there is to it.  &lt;br /&gt;&lt;br /&gt;I&#39;m in the process of writing my dissertation on the growth of gambling over the past 30 years.  One of the data sources I&#39;m using is the 1975 &lt;a href=&quot;http://hdl.handle.net/1880/41368&quot;&gt;Commission on the Review of the National Policy on Gambling&lt;/a&gt;.  Unlike the more recent &lt;a href=&quot;http://govinfo.library.unt.edu/ngisc/&quot;&gt;National Gambling Impact Study&lt;/a&gt;, the 1975 study is just in pure ASCII format.  The data comes directly from the US National Archives and has not been processed like data at big archives like &lt;a href=&quot;http://www.icpsr.umich.edu/access/index.html&quot;&gt;ICPSR&lt;/a&gt;.  &lt;br /&gt;&lt;br /&gt;As a result, I&#39;ve delved much deeper into the coding details of stata, including dictionary files, the labeling language and memory management.  I&#39;ll relate my tips and experiences here.  &lt;br /&gt;&lt;br /&gt;Stata is a wonderful program (see &lt;a href=&quot;http://www.versiontracker.com/dyn/moreinfo/macosx/10601&quot;&gt;my review at Versiontracker&lt;/a&gt;) and the most Mac-friendly of all data analysis programs.  The aim of this blog is to build a community of Mac Stata users and offer help to those just starting out.  &lt;br /&gt;&lt;br /&gt;</description><link>http://macstata.blogspot.com/2007/11/raison-d.html</link><author>noreply@blogger.com (Adam)</author><thr:total>0</thr:total></item></channel></rss>