<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dataninja</title>
	<atom:link href="http://dataninja.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dataninja.wordpress.com</link>
	<description>Data analysis</description>
	<lastBuildDate>Sun, 28 Sep 2008 23:10:44 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dataninja.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/5c9ff0a823f6a878a98462fe57ddd112?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Dataninja</title>
		<link>http://dataninja.wordpress.com</link>
	</image>
			<item>
		<title>Unified generic comment/uncomment scripts</title>
		<link>http://dataninja.wordpress.com/2008/09/27/unified-generic-commentuncomment-scripts/</link>
		<comments>http://dataninja.wordpress.com/2008/09/27/unified-generic-commentuncomment-scripts/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 21:58:05 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Stata]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/?p=158</guid>
		<description><![CDATA[A while back, I posted some TextWrangler scripts that allow for commenting and uncommenting blocks of code for codeless language modules such as Stata, R and LaTeX. The problem with my scripting approach was that it required two different scripts&#8212;one for commenting, one for uncommenting.
Steven Samuels has generously corrected this problem by writing one script [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=158&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A while back, I posted some TextWrangler scripts that allow for commenting and uncommenting blocks of code for codeless language modules such as Stata, R and LaTeX. The problem with my scripting approach was that it required two different scripts&#8212;one for commenting, one for uncommenting.</p>
<p>Steven Samuels has generously corrected this problem by writing one script that handles both functions &#8212; based on whether the line is already commented, running the script will either remove the existing comment or comment out the (currently uncommented) selection.</p>
<p>Download the new and improved script <a href="http://disinterested.googlepages.com/CommentUncomment.scpt">here</a>. Visit <a href="http://dataninja.wordpress.com/applescripts/">this page</a> for information on how to assign a keyboard shortcut to the script.</p>
<p>Note: The <a href="http://dataninja.wordpress.com/2006/05/08/textwrangler-uncomment-scripts-for-stata/">old script</a> is still available. The only reason I can think of to use the old version is in case you want to apply <em>multiple</em> comments to the same line (for example, if you use a comment to create a heading in your code, then you comment out the entire section).</p>
<p>Many thanks to Steve for supplying the script!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=158&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2008/09/27/unified-generic-commentuncomment-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>LaTeX 101</title>
		<link>http://dataninja.wordpress.com/2008/06/28/latex-101/</link>
		<comments>http://dataninja.wordpress.com/2008/06/28/latex-101/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 03:02:50 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/?p=154</guid>
		<description><![CDATA[Alex Yuffa has created an excellent (and beautiful) set of LaTeX tutorials: LaTeX 101, which introduces LaTeX, and LaTeX 102, which introduces advanced material through a series of exercies. The first document is based on my tutorial LaTeX: From Beginner to TeXPert, but Alex&#8217;s contains more examples and detail. If you&#8217;re new to LaTeX, these [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=154&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://uncert.mines.edu/students/a/ayuffa/">Alex Yuffa</a> has created an excellent (and beautiful) set of LaTeX tutorials: <a href="http://dataninja.files.wordpress.com/2008/06/latex101.pdf">LaTeX 101</a>, which introduces LaTeX, and <a href="http://dataninja.files.wordpress.com/2008/06/latex102.pdf">LaTeX 102</a>, which introduces advanced material through a series of exercies. The first document is based on my tutorial <a href="http://dataninja.wordpress.com/2006/04/20/latex-from-beginning-to-texpert/">LaTeX: From Beginner to TeXPert</a>, but Alex&#8217;s contains more examples and detail. If you&#8217;re new to LaTeX, these tutorials are a great place to start.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/154/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/154/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=154&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2008/06/28/latex-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>OOXML is now an ISO standard</title>
		<link>http://dataninja.wordpress.com/2008/04/01/ooxml-is-now-an-iso-standard/</link>
		<comments>http://dataninja.wordpress.com/2008/04/01/ooxml-is-now-an-iso-standard/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 22:45:17 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/?p=150</guid>
		<description><![CDATA[The word is more or less official that OOXML, the specification that Microsoft Office 2007 uses to write documents, has been approved as an ISO standard (the same body that approved ODF, the specification used by OpenOffice). The standardization process was very controversial, largely because (i) many felt that Microsoft was bucking the already approved [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=150&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The word is more or less <a href="http://www.ecma-international.org/news/TC45_current_work/ISO_and_IEC_approve_Office_Open_XML.htm">official</a> that OOXML, the specification that Microsoft Office 2007 uses to write documents, has been approved as an ISO standard (the same body that approved ODF, the specification used by OpenOffice). The standardization process was very controversial, largely because (i) many felt that Microsoft was bucking the already approved standard (ODF) in order to compete with OpenOffice and other products, and, to a lesser extent, (ii) some felt that the format was unsatisfactory, in some cases because of its complexity. That being said, Microsoft and ECMA (another standards organization) worked closely to bring the OOXML specification up to the standards of the ISO, and Microsoft has made a pledge to work towards interoperability, adding the OOXML specifications to their <a href="http://www.microsoft.com/interop/osp/default.mspx">open-specification promise</a>.</p>
<p>What does standardization mean for you?</p>
<ul>
<li>For most people, it means (i) that it will be easier to share documents between applications, and (ii) that you can create OOXML documents without worrying that you will not be able to access them in the future.</li>
<li>For people that prefer ODF to OOXML, it means that you will not be able to count on OpenOffice overtaking Microsoft Office on standards-compliance grounds alone (though price and performance competition, as always, will remain fair game).</li>
<li>For people that write mathematical documents, it means that you can add Microsoft Word to the list of applications/formats that make it easy to create such documents and save them in a standardized, interoperable format [i.e., LaTeX (and LyX, Scientific Word, etc.) and ODF (and OpenOffice, KOffice, etc.)].</li>
</ul>
<p>I hope I don&#8217;t sound like a Microsoft shill &#8212; as it happens, I just really like the way Office 2007 handles math; it combines LaTeX&#8217;s powerful ability to encode math with the convenience of WYSIWYG editing. And now you get that combination with the comfort of knowing that your documents are saved in an industry-standard format (at least, you will once Microsoft rolls out the next update to Office).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/150/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/150/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=150&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2008/04/01/ooxml-is-now-an-iso-standard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>USBTeX</title>
		<link>http://dataninja.wordpress.com/2008/03/06/usbtex/</link>
		<comments>http://dataninja.wordpress.com/2008/03/06/usbtex/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 02:30:02 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/?p=149</guid>
		<description><![CDATA[USBTeX is a complete, portable LaTeX environment for Windows. It includes portable versions of MikTeX, TeXMaker, Ghostscript, Ghostview, and Sumatra PDF. As the name suggests, you can install it on a USB drive and run it on any Windows machine (provided that you have a decent USB drive). Since LaTeX tends to be &#8220;special interest&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=149&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.exomatik.net/LaTeX/USBTeXEnglish">USBTeX</a> is a complete, portable LaTeX environment for Windows. It includes portable versions of MikTeX, TeXMaker, Ghostscript, Ghostview, and Sumatra PDF. As the name suggests, you can install it on a USB drive and run it on any Windows machine (provided that you have a decent USB drive). Since LaTeX tends to be &#8220;special interest&#8221; software, USBTeX could be a very convenient resource.</p>
<p>If this interests you, you may also be interested in using an <a href="http://dataninja.wordpress.com/2007/06/03/online-latex-compilers/">Online LaTeX Compiler</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/149/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/149/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=149&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2008/03/06/usbtex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>Initialize variables to missing!</title>
		<link>http://dataninja.wordpress.com/2008/02/28/initialize-variables-to-missing/</link>
		<comments>http://dataninja.wordpress.com/2008/02/28/initialize-variables-to-missing/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 01:11:34 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Stata]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/?p=148</guid>
		<description><![CDATA[Hopefully this post will be preaching to the choir, but lately I&#8217;ve been noticing that many students, programmers, professors, etc. write their statistical code as though there were no such thing as missing data. Unless your data have been cleaned and missing values imputed (I think the Public Use Census Data are like this), overlooking [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=148&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hopefully this post will be preaching to the choir, but lately I&#8217;ve been noticing that many students, programmers, professors, etc. write their statistical code as though there were no such thing as missing data. Unless your data have been cleaned and missing values imputed (I think the Public Use Census Data are like this), overlooking missing data is a mistake that could lead to, inter alia, biased estimates that act like measurement error.</p>
<p>The most common error that I see occurs in the creation of new variables. Variables are created according to rules regarding other variables (e.g., if <i>x</i>&gt;5, set <i>y</i>=1). But what happens if <i>x</i> is a missing value? Do you know how your statistical software treats missing values? I&#8217;m going to go through this example using Stata, but the same logic applies to any programming environment.</p>
<p>I have created a random variable <i>c</i> that takes 3 values (1, 2 and 3). There are 3 missing observations for the variable <i>c</i>.  I want to generate a new variable that takes the form</p>
<p><img src='http://l.wordpress.com/latex.php?latex=NewVar_i%3D%5Cbegin%7Bcases%7D+1+%26+%5Ctext%7Bif+%7D+c_i+%5Cin+%7B1%2C2%7D++%5C%5C+0+%26+%5Ctext%7Bif+%7D+c_i+%3D3+%5Cend%7Bcases%7D+&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='NewVar_i=\begin{cases} 1 &amp; \text{if } c_i \in {1,2}  \\ 0 &amp; \text{if } c_i =3 \end{cases} ' title='NewVar_i=\begin{cases} 1 &amp; \text{if } c_i \in {1,2}  \\ 0 &amp; \text{if } c_i =3 \end{cases} ' class='latex' />.</p>
<p>Consider the following two approaches to creating this variable:</p>
<p><i>Approach 1: Initialize everything to zero</i></p>
<pre>. gen x=0
. replace x=1 if (c==1 | c==2) (9 real changes made)</pre>
<p><i>Approach 2: Initialize everything to missing</i></p>
<pre>. gen y=.
(25 missing values generated)
. replace y=1 if (c==1 | c==2)
(9 real changes made)
. replace y=0 if c==3
(13 real changes made)</pre>
<p><b>Results</b></p>
<p>The variable <i>x</i>, created using approach 1, has too many observations. There should be 22, but there are 25:</p>
<pre>    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
           x |        25         .36    .4898979          0          1
           y |        22    .4090909    .5032363          0          1</pre>
<p>The variable <i>y</i>, on the other hand, has the correct number. The difference arises because what I want to do is define <i>NewVar</i> to be 0 whenever <i>c</i> is 3. Approach one defines <i>NewVar</i> to be 0 whenever <i>c</i> is not in {1,2}. This is a big difference from an econometric/statistical perspective. If we define <i>NewVar</i> to be 0 when we <i>do not know</i> the value of <i>c</i>, we are essentially imputing values. These imputed values will reduce the accuracy of estimates and future calculations.</p>
<p><b>A note about missing values in Stata</b></p>
<p>Stata saves missing values as very large numbers. This means that if you used the command</p>
<pre>replace y=0 if c&gt;2</pre>
<p>Stata would set <i>y=0</i> for observations with <i>c=3</i> as well as observations with <i>c=.</i> (missing). In this case, you could just use  the command in Approach 2 above. For continuous variables, however, this is not an option. The optimal workaround, in my opinion, is to use the following:</p>
<pre>replace y=0 if c&gt;2 and !missing(c)</pre>
<p>This would set <i>y=0</i> for all observations where <i>c</i> is not missing and the value of <i>c</i> is greater than two.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/148/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/148/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=148&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2008/02/28/initialize-variables-to-missing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>AM Statistical Software</title>
		<link>http://dataninja.wordpress.com/2008/02/22/am-statistical-software/</link>
		<comments>http://dataninja.wordpress.com/2008/02/22/am-statistical-software/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 23:39:12 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/?p=147</guid>
		<description><![CDATA[The American Institutes for Research offers a free application called AM Statistical Software (Windows only). The application is still in early development, but it already offers several modeling and replication procedures, including OLS, logit, probit and marginal maximum likelihood procedures.  Most impressive, however, is the application&#8217;s optional Data Transfer Component, which can import and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=147&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The American Institutes for Research offers a free application called <a href="http://am.air.org/features2.asp">AM Statistical Software</a> (Windows only). The application is still in early development, but it already offers several modeling and replication procedures, including OLS, logit, probit and marginal maximum likelihood procedures.  Most impressive, however, is the application&#8217;s optional Data Transfer Component, which can import and export SAS, Stata, SPSS, and <i>many </i>other data formats. I was able to use the application to read an SPSS file that the <a href="http://cran.us.r-project.org/web/packages/foreign/index.html">foreign package for R</a> couldn&#8217;t handle. AMSS is worth a try, even if all you need to do is convert a dataset.</p>
<p>The only trouble I had installing and running AM Statistical Software was that the help system didn&#8217;t install. [Update: Earlier I wrote that the UI was buggy, but I now think that was due to Vista, not AMSS.]</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/147/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/147/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=147&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2008/02/22/am-statistical-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>Quantile regression in R</title>
		<link>http://dataninja.wordpress.com/2008/01/05/quantile-regression-in-r/</link>
		<comments>http://dataninja.wordpress.com/2008/01/05/quantile-regression-in-r/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 06:05:55 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[Methods]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/2008/01/05/quantile-regression-in-r/</guid>
		<description><![CDATA[Roger Koenker, a quantile regression crusader, has an R package that implements the procedure. It is called quantreg, and it is documented here. This package has apparently been around for quite some time, but I was only recently turned on to quantile regression, so it was under my radar.
       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=146&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Roger Koenker, a <a href="http://www.econ.uiuc.edu/~roger/research/rq/rq.html">quantile regression crusader</a>, has an R package that implements the procedure. It is called quantreg, and it is documented <a href="http://cran.r-project.org/src/contrib/Descriptions/quantreg.html">here</a>. This package has apparently been around for quite some time, but I was only recently turned on to quantile regression, so it was under my radar.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/146/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/146/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=146&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2008/01/05/quantile-regression-in-r/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>Rattle: an R GUI</title>
		<link>http://dataninja.wordpress.com/2007/12/16/rattle-an-r-gui/</link>
		<comments>http://dataninja.wordpress.com/2007/12/16/rattle-an-r-gui/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 02:32:36 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/2007/12/16/rattle-an-r-gui/</guid>
		<description><![CDATA[Rattle is a graphical interface to R. It supports basic data management tasks, as well as a number of different modeling functions. I haven&#8217;t had a chance to test it out yet since I don&#8217;t have my R installation  completely up to date, but it looks promising. For all of R&#8217;s strengths, one weakness is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=145&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://rattle.togaware.com/">Rattle</a> is a graphical interface to R. It supports basic data management tasks, as well as a number of different modeling functions. I haven&#8217;t had a chance to test it out yet since I don&#8217;t have my R installation  completely up to date, but it looks promising. For all of R&#8217;s strengths, one weakness is the inconsistency of the syntax from command to command and package to package (not that commercial applications don&#8217;t have the same problem).</p>
<p>Also see <a href="http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/">RCommander</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/145/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/145/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=145&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2007/12/16/rattle-an-r-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>STIX fonts</title>
		<link>http://dataninja.wordpress.com/2007/11/27/stix-fonts/</link>
		<comments>http://dataninja.wordpress.com/2007/11/27/stix-fonts/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 03:22:12 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/2007/11/27/stix-fonts/</guid>
		<description><![CDATA[The STIX mathematical fonts are available as a public beta. From the website:
The mission of the Scientific and Technical Information Exchange (STIX) font creation project is the preparation of a comprehensive set of fonts that serve the scientific and engineering community in the process from manuscript creation through final publication, both in electronic and print [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=144&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The <a href="http://www.stixfonts.org/">STIX</a> mathematical fonts are available as a public beta. From the website:</p>
<blockquote><p>The mission of the Scientific and Technical Information Exchange (STIX) font creation project is the preparation of a comprehensive set of fonts that serve the scientific and engineering community in the process from manuscript creation through final publication, both in electronic and print formats. Toward this purpose, the STIX fonts will be made available, under royalty-free license, to anyone, including publishers, software developers, scientists, students, and the general public.</p></blockquote>
<p>I&#8217;m not sure if these work on all platforms, but they are TrueType fonts.</p>
<p>These fonts can be used to augment the symbols available in the OpenOffice.org equation editor (see <a href="http://dataninja.wordpress.com/2007/09/01/how-to-add-symbols-to-the-openoffice-equation-editor/">this tutorial</a> for more).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/144/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/144/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=144&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2007/11/27/stix-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
		<item>
		<title>Panel data models in Stata, SAS, Limdep and SPSS</title>
		<link>http://dataninja.wordpress.com/2007/11/11/panel-data-models-in-stata-sas-limdep-and-spss/</link>
		<comments>http://dataninja.wordpress.com/2007/11/11/panel-data-models-in-stata-sas-limdep-and-spss/#comments</comments>
		<pubDate>Mon, 12 Nov 2007 01:01:04 +0000</pubDate>
		<dc:creator>dataninja</dc:creator>
				<category><![CDATA[Methods]]></category>
		<category><![CDATA[SAS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Stata]]></category>

		<guid isPermaLink="false">http://dataninja.wordpress.com/2007/11/11/panel-data-models-in-stata-sas-limdep-and-spss/</guid>
		<description><![CDATA[As a follow up to this post on estimating panel data models in R, I thought I&#8217;d point out that there is an excellent tutorial (PDF) by Hun Myoung Park on panel data models in Stata, SAS, Limbdep and SPSS. The tutorial covers fixed and random effects (and different variations thereon).
     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=141&subd=dataninja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As a follow up to <a href="http://dataninja.wordpress.com/2007/11/10/linear-panel-data-models-in-r-the-plm-package/">this post</a> on estimating panel data models in R, I thought I&#8217;d point out that there is an excellent <a href="http://www.indiana.edu/~statmath/stat/all/panel/panel.pdf">tutorial </a>(PDF) by Hun Myoung Park on panel data models in Stata, SAS, Limbdep and SPSS. The tutorial covers fixed and random effects (and different variations thereon).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataninja.wordpress.com/141/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataninja.wordpress.com/141/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataninja.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataninja.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataninja.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataninja.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataninja.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataninja.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataninja.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataninja.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataninja.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataninja.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataninja.wordpress.com&blog=7320&post=141&subd=dataninja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dataninja.wordpress.com/2007/11/11/panel-data-models-in-stata-sas-limdep-and-spss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c0705ad5ae61ec0cd0b404720f6a7f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dataninja</media:title>
		</media:content>
	</item>
	</channel>
</rss>