December 2011

Lehmann Primiality Test in R

December 21, 2011 | Command-Line Worldview

After a small frustration with the limitations of R 16-bit intergers. I think i have worked out a solution. The issue was i was implementing a bone-headed solution to the modulo/exponent step. So to recap. The Lehmann primality test is a probabilistic ... [Read more...]

An R function to map your Twitter Followers

December 21, 2011 | leekgroup

I wrote a little function to make a personalized map of who follows you or who you follow on Twitter. The idea for this function was inspired by some plots I discussed in a previous post. I also found a lot of really useful code over at flowing data he... [Read more...]

Portfolio Optimization in R, Part 3

December 21, 2011 | DomPazz

In the last post, we discussed the issue of finding the market portfolio by fitting a curve to the found efficient frontier.  Because of kinks in the frontier, we could not guarantee that the fitted curve would be concave in the area of the market... [Read more...]

Record Long Term Treasury Returns

December 21, 2011 | klr

I mistakenly assume everyone knows that US Treasury Returns have been extreme in 2011.  As we near the end of the year, I thought it would be beneficial to look at the world’s best performer while incorporating some new graphical techniques.&nbs...
[Read more...]

Visualizing categorical data in R

December 21, 2011 | Larry D'Agostino

I came across an interesting SAS macro that was used for visualizing log odds relationships of data.  This type of chart is helpful for visualizing the relationship between a binary dependent variable and a continuous independent variable.  I... [Read more...]

Maps with R, and polygon boundaries

December 21, 2011 | arthur charpentier

With R, it is extremely easy to draw maps. Let us start with something simple, like French regions. Baptiste mentioned on his blog that shapefiles can be downloaded from http://ign.fr/ website. Hence, if you extract the zip file, it is possible to ... [Read more...]

methylKit: R package for DNA methylation analysis

December 21, 2011 | altuna

High-throughput bisulfite sequencing based methods are popular for measuring genome-wide DNA methylation levels. Here is an R package that helps with the analysis of such DNA methylation data. Although, it is still under heavy development current funct... [Read more...]

Basics on Markov Chain (for parents)

December 20, 2011 | arthur charpentier

Markov chains is a very interesting and powerful tool. Especially for parents. Because if you think about it quickly, most of the games our kids are playing at are Markovian. For instance, snakes and ladders… It is extremely easy to write down the transition matrix, one just need to define ... [Read more...]

Mortgage Refinance Calculator

December 20, 2011 | BioStatMatt

Mortgage rates are low, considering historical rates for the last 50 years. It may be timely to consider a mortgage refinance. The image above links to a simple tool for exploring mortgage refinance, built using rapache and the yet-to-be-archived yarr package for R. Hence, there are now two mortgage-related calculators on ... [Read more...]

Simulating Confidence Intervals

December 20, 2011 | The PolStat Feed

As I am finishing up my thesis I have recently been plotting effects from many models. An important aspect of this is to show the uncertainty surrounding different estimates and effects. Following a paper by Gary King, Michael Tomz and Jason Wittenberg... [Read more...]

Outliers in the European Parliament

December 20, 2011 | The PolStat Feed

Earlier this year I had a lot of fun learning how to use the BeautifulSoup and mechanize modules in python to scrape websites. My goal was to scrape the European Parliament website for information on the activity levels of the different MEPs. I struggl... [Read more...]

TikZ and R

December 20, 2011 | The PolStat Feed

TikZ is an awesome macro for producing beautiful graphics in LaTeX. I use it constantly as it has a very intuitive syntax, and it is easy to define global settings for your plots, ensuring that the graphics in your paper are all uniformly styled. One t... [Read more...]

Simplifying Loops in R

December 20, 2011 | The PolStat Feed

One of the things I do frequently in my research is the apply some function on a large number of rows in a data set. I am a great fan of the loop structure in R, and use this a lot. I know one should always vectorize and avoid loops ... [Read more...]

December 2011 issue of the R Journal: An overview

December 20, 2011 | David Smith

The December 2011 issue of the R Journal is now available for download. Three times a year, the open-access journal of the R project publishes peer-reviewed articles on research and applications of R and R packages. As of the latest issue, all articles are published under a Creative Commons license, making ... [Read more...]

Assessing Model Fit Through Simulation

December 20, 2011 | The PolStat Feed

In the area of political science where I am active (european politics) it is very common to simply estimate a model, and start drawing inferences immediately. This is a shame as drawing inferences from a model without assessing how well it fits the dat... [Read more...]
1 2 3 4 5 6 13

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)