________________________________________
From: gov2001-l-bounces at
lists.fas.harvard.edu [gov2001-l-bounces at
lists.fas.harvard.edu] On Behalf Of gov2001-l-request at
lists.fas.harvard.edu
[gov2001-l-request at
lists.fas.harvard.edu]
Sent: Sunday, February 07, 2010 11:40 PM
To: gov2001-l at
lists.fas.harvard.edu
Subject: gov2001-l Digest, Vol 55, Issue 23
Send gov2001-l mailing list submissions to
gov2001-l at
lists.fas.harvard.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
or, via email, send a message with subject or body 'help' to
gov2001-l-request at
lists.fas.harvard.edu
You can reach the person managing the list at
gov2001-l-owner at
lists.fas.harvard.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gov2001-l digest..."
Today's Topics:
1. Lamont (Meryl Federman)
2. factorials and plots in R (Maya Sen)
3. The gradient of likelihood functions (Lin, Eric)
4. Re: The gradient of likelihood functions (Gary King)
5. last call for co-authors (Maya Sen)
6. Re: last call for co-authors (Meryl Federman)
7. Combinations and permutations (Malekovic, Nino)
----------------------------------------------------------------------
Message: 1
Date: Sun, 7 Feb 2010 12:28:09 -0500
From: Meryl Federman <federman at fas.harvard.edu>
Subject: [gov2001] Lamont
To: Class List for Gov 2001/E-2001 <gov2001-l at lists.fas.harvard.edu>
Message-ID: <ADEC34F3-76F3-4940-A4FD-F2319824A505 at fas.harvard.edu>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Anyone who wants to, come by the Lamont cafe to work on the problem
set at 2:30!
~Meryl
Hi Meryl,
Do you mean 2.30 tomorrow afternoon?
Nino Malekovic
MPA Candidate, Class 2011
Harvard Kennedy School
------------------------------
Message: 2
Date: Sun, 7 Feb 2010 13:43:27 -0500
From: Maya Sen <msen at fas.harvard.edu>
Subject: [gov2001] factorials and plots in R
To: "Class List for Gov 2001/E-2001" <gov2001-l at lists.fas.harvard.edu>
Message-ID:
<16e0be401002071043x35870befs8d52812da19be6e3 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hey all,
A question came up on how to do factorials in R. The answer is that you can
use the factorial function ("factorial"). So, for example:
factorial(6)
[1] 720
6*5*4*3*2*1
[1] 720
Another question that came up was how to save the plots and figures that you
create in R. There are a few ways to do it, but I like to save my plots as
PDF's using the following type of command:
pdf(file= "myPlot.pdf", width = 5, height = 5, family = "Helvetica",
pointsize = 10)
## opens device to save plot, you can specify size, font, etc
plot(xVec, yVec)
## creates plot -- you can also use here "hist" or the "curve"
functions, of course
dev.off()
## closes device and finishes saving
If you move forward saving your plots as PDFs, then you should compile your
LaTeX code using pdflatex. Otherwise, you might get an error.
hope that helps,
Maya