<?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/"
	>

<channel>
	<title>The Stata Things</title>
	<atom:link href="http://enoriver.net/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://enoriver.net</link>
	<description>computing for fun and profit</description>
	<lastBuildDate>Tue, 11 Jun 2013 15:24:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Stata 13 is coming on June 24</title>
		<link>http://enoriver.net/index.php/2013/06/11/stata-13-is-coming-on-june-24/</link>
		<comments>http://enoriver.net/index.php/2013/06/11/stata-13-is-coming-on-june-24/#comments</comments>
		<pubDate>Tue, 11 Jun 2013 15:24:10 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[Stata]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2427</guid>
		<description><![CDATA[Yellow color scheme is out, sky-blue is in, plus expanded capabilities, as one might expect. Notable among them, xtologit, xtoprobit and long strings -- 2 billion character long, that is. One of these days you won't need an RDBMS anymore. Wouldn't that be nice? See more details here.]]></description>
				<content:encoded><![CDATA[<p>Yellow color scheme is out, sky-blue is in, plus expanded capabilities, as one might expect. Notable among them, <code>xtologit</code>, <code>xtoprobit</code> and long strings -- 2 billion character long, that is. One of these days you won't need an RDBMS anymore. Wouldn't that be nice?</p>
<p>See more details <a href="http://www.stata.com/stata13/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2013/06/11/stata-13-is-coming-on-june-24/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping knitr happy after upgrading to R 3.0.0</title>
		<link>http://enoriver.net/index.php/2013/04/12/keeping-knitr-happy-after-upgrading-to-r-3-0-0/</link>
		<comments>http://enoriver.net/index.php/2013/04/12/keeping-knitr-happy-after-upgrading-to-r-3-0-0/#comments</comments>
		<pubDate>Sat, 13 Apr 2013 00:35:40 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2413</guid>
		<description><![CDATA[As noted here, after upgrading to R 3.0.0 you must run update.packages(checkBuilt=TRUE) This is because a bunch of packages have to be to rebuilt under R 3.0.0 in order to keep working. So I did, but that was not enough for LyX to be able to compile my pdf's from knitr like it used to [...]]]></description>
				<content:encoded><![CDATA[<p>As noted <a href="http://www.r-bloggers.com/r-3-0-0-is-released-whats-new-and-how-to-upgrade/">here</a>, after upgrading to R 3.0.0 you must run </p>
<pre><code>
update.packages(checkBuilt=TRUE)
</code></pre>
<p>This is because a bunch of packages have to be to rebuilt under R 3.0.0 in order to keep working. </p>
<p>So I did, but that was not enough for <a href="http://www.lyx.org/">LyX</a> to be able to compile my pdf's from <a href="http://yihui.name/knitr/">knitr</a> like it used to only a week ago. What I had to do besides was this:</p>
<pre><code>
remove.packages("tikzDevice")
install.packages("/Users/ghuiber/Downloads/tikzDevice_0.6.3.tar.gz", repos = NULL, type="source")
</code></pre>
<p>That is right. The package <code>tikzDevice</code> can no longer be installed directly from R-forge as a binary, as in<br />
<code>
<pre>
install.packages("tikzDevice", repos="http://R-Forge.R-project.org")
</pre>
<p></code><br />
Also, the source files are only available as a .tar.gz archive. To install from it on a Windows machine, you must have <a href="http://cran.r-project.org/bin/windows/Rtools/">Rtools</a> installed first.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2013/04/12/keeping-knitr-happy-after-upgrading-to-r-3-0-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A quick note on rJava</title>
		<link>http://enoriver.net/index.php/2013/03/16/a-quick-note-on-rjava/</link>
		<comments>http://enoriver.net/index.php/2013/03/16/a-quick-note-on-rjava/#comments</comments>
		<pubDate>Sat, 16 Mar 2013 16:36:34 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2393</guid>
		<description><![CDATA[I recently had to set up a PC with similar kit as I have on my Mac. On this PC the OS is Windows 7 64-bit but the browser is IE8 32-bit. This causes jucheck.exe to install (and occasionally update) 32-bit Java. This is unfortunate if you use 64-bit R, because it breaks the rJava [...]]]></description>
				<content:encoded><![CDATA[<p>I recently had to set up a PC with similar kit as I have on my Mac. On this PC the OS is Windows 7 64-bit but the browser is IE8 32-bit. This causes <code>jucheck.exe</code> to install (and occasionally update) 32-bit Java. This is unfortunate if you use 64-bit R, because it breaks the <code>rJava</code> package, which in turn breaks the <code>xlsx</code> package, with the practical consequence that you cannot read Excel worksheets into R. </p>
<p>There is a workaround. First, install Oracle's manual download of 64-bit Java. As of this writing, its Windows 7 home will be in <code>C:\Program Files\Java\jre7</code>. You should add this to the <code>%path%</code> environment variable. In addition, the <code>rJava</code> package depends on <code>jvm.dll</code>, and R might be looking for it in the wrong spot. It won't hurt, then, to add this to your <code>%path%</code> as well: <code>C:\Program Files\Java\jre7\bin\server</code>. There's more on this, as usual, on <a href="http://stackoverflow.com/questions/7019912/using-the-rjava-package-on-win7-64-bit-with-r">StackOverflow</a>.</p>
<p>As <a href="http://www.java.com/en/download/faq/java_win64bit.xml">Oracle warns</a>, your manually-installed 64-bit Java will not be automatically updated. That is a problem when security flaws hit Java, but I find being able to read Excel files into R so useful that I'm willing to just live with this risk, though I don't have a good idea how to best manage it. I'll just keep an eye on <a href="http://arstechnica.com/">ArsTechnica</a> for bug news. If anybody has a better way, I'm all ears.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2013/03/16/a-quick-note-on-rjava/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An R-squared for logistic regression, packaged</title>
		<link>http://enoriver.net/index.php/2013/02/24/an-r-squared-for-logistic-regression-packaged/</link>
		<comments>http://enoriver.net/index.php/2013/02/24/an-r-squared-for-logistic-regression-packaged/#comments</comments>
		<pubDate>Sun, 24 Feb 2013 16:17:34 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[Stata]]></category>
		<category><![CDATA[logistic regression]]></category>
		<category><![CDATA[R-squared]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2358</guid>
		<description><![CDATA[This morning I checked Paul Allison's Statistical Horizons blog and found a post on measures for logistic regression. It introduced me to Tjur's by way of an example, which I repackaged below: // Reference: http://www.statisticalhorizons.com/r2logistic // program definition capture prog drop tjur2 program tjur2, rclass if !inlist(e(cmd),"logit","logistic") { di as err "Tjur's R-squared only works [...]]]></description>
				<content:encoded><![CDATA[<p>This morning I checked Paul Allison's Statistical Horizons blog and found <a href="http://www.statisticalhorizons.com/r2logistic">a post on <img src='http://s.wordpress.com/latex.php?latex=R%5E2&#038;bg=f6f6e6&#038;fg=000000&#038;s=0' alt='R^2' title='R^2' class='latex' /> measures for logistic regression</a>. It introduced me to Tjur's <img src='http://s.wordpress.com/latex.php?latex=R%5E2%20&#038;bg=f6f6e6&#038;fg=000000&#038;s=0' alt='R^2 ' title='R^2 ' class='latex' /> by way of an example, which I repackaged below:</p>
<pre><code>
// Reference: http://www.statisticalhorizons.com/r2logistic

// program definition
capture prog drop tjur2
program tjur2, rclass

if !inlist(e(cmd),"logit","logistic") {
   di as err "Tjur's R-squared only works after logit or logistic."
   exit 498 // Thank you, Nick Cox.
}
tempname yhat
predict `yhat' if e(sample)
local y `e(depvar)'
quietly ttest `yhat', by(`y')
local r2logistic r(mu_2)-r(mu_1)
di "Tjur's R-squared " _col(20) %4.3f `r2logistic'
return local r2logistic `r2logistic'

end

// use case
use "http://www.uam.es/personal_pdi/economicas/rsmanga/docs/mroz.dta", clear
logistic inlf kidslt6 age educ huswage city exper
tjur2
</code></pre>
<p>I'm not sure yet if it's worth saving this program as <code>ado/personal/t/tjur2.ado</code> for my future logistic regression diagnostic needs, but I haven't posted anything Stata-related in too long, so there you have it.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2013/02/24/an-r-squared-for-logistic-regression-packaged/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tidying up your R packages</title>
		<link>http://enoriver.net/index.php/2013/01/25/tidying-up-your-r-packages/</link>
		<comments>http://enoriver.net/index.php/2013/01/25/tidying-up-your-r-packages/#comments</comments>
		<pubDate>Sat, 26 Jan 2013 03:08:43 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2335</guid>
		<description><![CDATA[Do you have the same R packages installed in two places? Would you like to remove the duplicates? You might find the script below useful: rm(list=ls(all=TRUE)) # define function to return duplicate packages and paths tidyup]]></description>
				<content:encoded><![CDATA[<p>Do you have the same R packages installed in two places? Would you like to  remove the duplicates? You might find the script below useful:</p>
<pre><code>
rm(list=ls(all=TRUE))

# define function to return duplicate packages and paths
tidyup <- function() {
   packs <- as.data.frame(installed.packages())
   paths <- levels(packs$LibPath)
   main <- subset(packs, LibPath==paths[2]) # base and recommended
   mine <- subset(packs, LibPath==paths[3]) # stuff I installed
   dups <- intersect(main$Package,mine$Package)
   return(list(paths,dups))
}   

# do the work:
cleanthis <- tidyup()
removethese <- cleanthis[[2]]          # here's the list of dups
fromhere <- cleanthis[[1]][3]          # I only want them on the main path
remove.packages(removethese, fromhere) # done

# check the result: 
# if length(tidyup()[[2]])=0, all is well. no dup packages left.
checkthis <- as.numeric(length(tidyup()[[2]]))
</code></pre>
<p>Why I wrote this: </p>
<p>A while back I chose to separate my package library over two file paths. One would be for base and recommended packages (1), the other for everything else (2). My notes on how I did that are <a href="http://enoriver.net/index.php/2012/11/07/setting-up-my-r-library-folder-on-a-mac/">here</a>, and my reasons are <a href="http://enoriver.net/index.php/2012/08/02/the-r-library-folder-on-a-mac/">here</a>.</p>
<p>Today, I wanted to update my <a href="http://projects.iq.harvard.edu/zelig">Zelig</a>. I used the wizard -- <code>source("http://r.iq.harvard.edu/zelig.installer.R")</code> -- so I would get all the add-ons in one step. The wizard works under the assumptions that your library is all in one place. It installed a few packages that Zelig and its add-ons depend on on path (2), because it didn't find them there. They were present on path (1) though, so I ended up with duplicates. This is how I got rid of them.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2013/01/25/tidying-up-your-r-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m taking intro to biostats and epi (PH207x) from EdX</title>
		<link>http://enoriver.net/index.php/2012/12/05/im-taking-intro-to-biostats-and-epi-ph207x-from-edx/</link>
		<comments>http://enoriver.net/index.php/2012/12/05/im-taking-intro-to-biostats-and-epi-ph207x-from-edx/#comments</comments>
		<pubDate>Thu, 06 Dec 2012 03:13:55 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2318</guid>
		<description><![CDATA[So far, it's been great fun. It's the first MOOC I saw where the software used is Stata, and I would not be surprised if this were a first among all commercial software packages. The topics covered and quality of the instruction are excellent. I am glad to see Stata introduced to a large audience [...]]]></description>
				<content:encoded><![CDATA[<p>So far, it's been great fun. It's the first MOOC I saw where the software used is Stata, and I would not be surprised if this were a first among all commercial software packages. The topics covered and quality of the instruction are excellent. I am glad to see Stata introduced to a large audience in such <a href="https://www.edx.org/">nice company</a>. StataCorp made free temporary licenses available to all registered students worldwide for the duration of the course.</p>
<p>But enough about Stata. What really blew me away was <a href="http://www.amazon.com/Principles-Biostatistics-CD-ROM-Marcello-Pagano/dp/0534229026/ref=sr_1_1?ie=UTF8&#038;qid=1354761925&#038;sr=8-1&#038;keywords=pagano+gauvreau">the textbook</a> for the biostats section. Beautifully written, it takes its time to cover properly everything you need to know about hypothesis testing if you're an applied researcher. Most texts I've seen before hurried through this part like they couldn't wait to jump into regression diagnostics and the like. Maybe it's because I've only seen econometrics texts before. </p>
<p>Anyway, buy it if you're looking for an introductory text for applied stats of any kind, and biostats in particular. I'm not getting a penny for this plug, by the way, so feel free to try and find it for less <a href="http://books.google.com/books?id=YxRpQgAACAAJ&#038;sitesec=buy&#038;source=gbs_atb">elsewhere</a>. And take <a href="https://www.edx.org/courses/HarvardX/PH207x/2012_Fall/about">the course</a> when they offer it again. At the very least, it will make you an educated consumer of public health information. </p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2012/12/05/im-taking-intro-to-biostats-and-epi-ph207x-from-edx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up my R library folder on a Mac</title>
		<link>http://enoriver.net/index.php/2012/11/07/setting-up-my-r-library-folder-on-a-mac/</link>
		<comments>http://enoriver.net/index.php/2012/11/07/setting-up-my-r-library-folder-on-a-mac/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 20:29:02 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2302</guid>
		<description><![CDATA[My understanding is that there are three kinds of R packages: base, recommended, and everything else. You can tell which is which by inspecting the output of installed.packages(). That is easiest done in RStudio by sending that output to a data frame, like this packs names(subset(packs, Priority=="recommended")$Package) [1] "boot" "class" "cluster" "codetools" "foreign" "KernSmooth" [7] [...]]]></description>
				<content:encoded><![CDATA[<p>My understanding is that there are three kinds of R packages: base, recommended, and everything else. You can tell which is which by inspecting the output of <code>installed.packages()</code>. That is easiest done in <a href="http://www.rstudio.com/ide/">RStudio</a> by sending that output to a data frame, like this</p>
<pre><code>
packs <- as.data.frame(installed.packages())
</code></pre>
<p>You can see that this data frame has a column named <code>Priority</code>. The output of <code>table(packs$Priority, exclude=NULL)</code> shows that I have 14 base packages, 15 recommended ones, and 70 of the other kind -- user-contributed kit that I installed over time as I bumbled my way through learning and using R. </p>
<p>Looking at <code>packs</code> in the top left pane of Rstudio also shows that the rows are named after the packages. This means that you can collect the names of base and recommended packages easily:</p>
<pre><code>
> names(subset(packs, Priority=="recommended")$Package)
 [1] "boot"       "class"      "cluster"    "codetools"  "foreign"    "KernSmooth"
 [7] "lattice"    "MASS"       "Matrix"     "mgcv"       "nlme"       "nnet"      
[13] "rpart"      "spatial"    "survival" 
</code></pre>
<p>Having all the R packages in the same default library, which is <code>/Library/Frameworks/R.framework/Versions/2.15/Resources/library</code> as of this writing, comes with the disadvantage that when I upgrade to the next version of R I will have to re-install the 70 packages of the third kind.</p>
<p>It would be nice if I could set them aside in a different library, and any future version of R will know to look for them there and update them as needed.</p>
<p>There are two steps to this job: one is the actual moving of package folders; the other is to show R where to look for them.</p>
<p>First, I created a new folder called Rlibs. Then I moved the folders around with this Bash script, which I called movePacks.sh:</p>
<pre><code>
#!/bin/bash

# declare an array with the names of the base packages
basepacks=("base" "compiler" "datasets" "graphics" "grDevices" "grid" "methods" "parallel" "splines" "stats" "stats4" "tcltk" "tools" "utils")

# and another with the names of the recommended ones
recpacks=("boot" "class" "cluster" "codetools" "foreign" "KernSmooth" "lattice" "MASS" "Matrix" "mgcv" "nlme" "nnet" "rpart" "spatial" "survival")

# and now concatenate them
allpacks=("${basepacks[@]}" "${recpacks[@]}")

# where you're moving from
oldLib="/Library/Frameworks/R.framework/Versions/2.15/Resources/library"

# where you're moving to
newLib="/Users/ghuiber/Rlibs"

# first, move everything over
mv ${oldLib}/* ${newLib}

# then move the base and recommended packages back to their default location
for i in "${allpacks[@]}"
do
   mv ${newLib}/${i} ${oldLib}
done
</code></pre>
<p>Finally, to point R to the library folders, I created this <code>.Renviron</code> file as instructed by Christophe Lalanne in the comments to my <a href="http://enoriver.net/index.php/2012/08/02/the-r-library-folder-on-a-mac/">earlier post</a> on the topic:</p>
<pre><code>
R_PAPERSIZE=letter
R_LIBS=/Users/ghuiber/Rlibs
EDITOR=vim
</code></pre>
<p>The ideas for the R_PAPERSIZE and EDITOR environment variables came from <a href="http://www.biostat.wisc.edu/~kbroman/Rintro/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2012/11/07/setting-up-my-r-library-folder-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Benchmarks</title>
		<link>http://enoriver.net/index.php/2012/10/17/benchmarks/</link>
		<comments>http://enoriver.net/index.php/2012/10/17/benchmarks/#comments</comments>
		<pubDate>Wed, 17 Oct 2012 21:19:42 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[Stata]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2283</guid>
		<description><![CDATA[I went googling for some examples of quadratic programming done in Mata, and stumbled across a fairly recent Statalist discussion. The original question is here and the official response, typically prompt, is here. I tested Patrick Roland's code on my own machine (2011 MacBook Pro Core2 i5) but with Octave instead of MATLAB, and with [...]]]></description>
				<content:encoded><![CDATA[<p>I went googling for some examples of quadratic programming done in Mata, and stumbled across a fairly recent Statalist discussion. The original question is <a href="http://www.stata.com/statalist/archive/2012-07/msg00707.html">here</a> and the official response, typically prompt, is <a href="http://www.stata.com/statalist/archive/2012-07/msg00749.html">here</a>. I tested Patrick Roland's code on my own machine (2011 MacBook Pro Core2 i5) but with <a href="http://www.gnu.org/software/octave/">Octave</a> instead of MATLAB, and with R in addition. Octave took about 2 seconds. My R code is </p>
<pre><code>
system.time(chol2inv(matrix(rnorm(2000^2),2000,2000)))
</code></pre>
<p>This took about 4 seconds to run, whether in RStudio or in command-line R 2.15.1. Mata, meanwhile, still takes about 30 seconds. I run Stata 12MP, all up to date. I'd be curious how SAS/IML does. I don't have it.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2012/10/17/benchmarks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My MOOC habit</title>
		<link>http://enoriver.net/index.php/2012/09/15/my-mooc-habit/</link>
		<comments>http://enoriver.net/index.php/2012/09/15/my-mooc-habit/#comments</comments>
		<pubDate>Sat, 15 Sep 2012 21:00:01 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2262</guid>
		<description><![CDATA[I can't seem to stay away from all this great online education, and the problem worsens as supply expands and prices fall. Back in 2008 I was paying NC State about $400 a pop for some CS courses that I took online there. Now there's Coursera, edX, Udacity, P2PU and Caltech, all free. For some [...]]]></description>
				<content:encoded><![CDATA[<p>I can't seem to stay away from all this great online education, and the problem worsens as supply expands and prices fall. Back in 2008 I was paying NC State about $400 a pop for <a href="http://engineeringonline.ncsu.edu/PS/CPC.html">some CS courses</a> that I took online there. Now there's <a href="https://www.coursera.org/">Coursera</a>, <a href="https://www.edx.org/">edX</a>, <a href="http://www.udacity.com/">Udacity</a>, <a href="https://p2pu.org/en/">P2PU</a> and <a href="http://work.caltech.edu/telecourse.html">Caltech</a>, all free. </p>
<p>For some of us, it's a growing habit, as confessed in the last paragraph <a href="http://americanradioworks.publicradio.org/features/tomorrows-college/keyboard-college/moocs.html">here</a>. But scattered evidence so far suggests that a majority of <a href="http://en.wikipedia.org/wiki/Massive_open_online_course">MOOC</a> consumers are dabblers -- a bit like president Obama, who <a href="http://www.celebstoner.com/201205219593/news/celebstoner-news/penn-jillette-on-obama-and-marijuana.html">may have done a bit of blow</a> but didn't quite become a coke head. Below is a picture that supports this view.</p>
<p><a href="http://enoriver.net/blog/wp-content/uploads/2012/09/youtube.png"><img src="http://enoriver.net/blog/wp-content/uploads/2012/09/youtube-300x218.png" alt="" title="youtube" width="300" height="218" class="alignnone size-medium wp-image-2263" /></a></p>
<p>The Learning From Data class at Caltech consists of 18 lectures, offered both over <a href="http://www.youtube.com/watch?v=VeKeFIepJBU&#038;feature=relmfu">YouTube</a> and <a href="http://www.apple.com/education/itunes-u/">iTunes U</a>. I did both. If I knew I would be watching on a plane or in a hotel room, I downloaded them ahead of time to iTunes. Otherwise, I just watched them on YouTube. You can count the views for each video and of course they will change over time, but I think the general trend is right: a lot of people watch the first lecture, then peter out, with some peaks that may well be random, but my guess is that they are at specific topics visited by people who use this class as another reference.</p>
<p>My own experience may be typical. Though I took at least two online courses per year since the fall of 2008, I signed up for more. I have both signed up for courses I never took, and started courses I never finished. What can I say? It's a feast out there. I am grateful to the hosts, and I hope that they will get lots of good guests with the necessary youth and stamina. I mean, if I were an unemployed millennial, I'd occupy this.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2012/09/15/my-mooc-habit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The R library folder on a Mac</title>
		<link>http://enoriver.net/index.php/2012/08/02/the-r-library-folder-on-a-mac/</link>
		<comments>http://enoriver.net/index.php/2012/08/02/the-r-library-folder-on-a-mac/#comments</comments>
		<pubDate>Thu, 02 Aug 2012 16:36:36 +0000</pubDate>
		<dc:creator>Gabi Huiber</dc:creator>
				<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://enoriver.net/?p=2231</guid>
		<description><![CDATA[How do you update your R? I mean the whole thing, not just the base packages. R comes with a library folder where packages go -- both the base packages and the user-written ones you install over time. I'm not entirely sure what would be the best place for this folder so updates to all [...]]]></description>
				<content:encoded><![CDATA[<p>How do you update your R? I mean the whole thing, not just the base packages.</p>
<p>R comes with a library folder where packages go -- both the base packages and the user-written ones you install over time. I'm not entirely sure what would be the best place for this folder so updates to all packages are as easy as possible. </p>
<p>It gets worse. On a Mac you have not one, but n+2 library folders. One is /Library/Frameworks/R.framework/Resources/library. Let's call it (1). The other n+1 are as many as there are historic versions of R on your computer, plus one. All are in /Library/Frameworks/R.framework/Versions/. In my case, they are as follows: n of them are in X/Resources/library, where X is 2.13, 2.14, and 2.15; one is in Current/Resources/library. </p>
<p>I know that the three library folders in X=2.15, Current and (1) are identical and updated simultaneously, though only the first shows up when I call <code>.libPaths()</code>. But when you update say, from 2.15 to 2.16, your historic versions remain frozen and the new (1) and Current folders reflect only 2.16. You have to install non-base packages all over again, by hand. Or do you? Is there a way to script an update of everything in the library folder at version t-1 when you update your R to version t? If anybody knows, please drop a comment. Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://enoriver.net/index.php/2012/08/02/the-r-library-folder-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
