Connecting to a MongoDB database from R using the C API for MongoDB

September 24, 2010
By

Today, Neil posted an article titled" Connecting to a MongoDB database from R using Java". In the current post, I'll show how to use the C API for MongoDB to fetch some MongoDB data from R. The code will be somehow similar to my previous post "A stateful C function for R: parsing Fasta sequences".OK, First, let's...

Read more »

Connecting to a MongoDB database from R using the C API for MongoDB

September 24, 2010
By

Today, Neil posted an article titled" Connecting to a MongoDB database from R using Java". In the current post, I'll show how to use the C API for MongoDB to fetch some MongoDB data from R. The code will be somehow similar to my previous post "A stateful C function for R: parsing Fasta sequences".OK, First, let's...

Read more »

R / Finance 2011 Call for Papers

September 24, 2010
By

Brian announced it on r-help and r-sig-finance and I have since updated the R/Finance website and Call for Papers page. And as David Smith already outblogged me about it, without further ado our Call for Paper for next spring's R/Finance conference: ...

Read more »

R / Finance 2011 Call for Papers

September 24, 2010
By

Brian announced it on r-help and r-sig-finance and I have since updated the R/Finance website and Call for Papers page. And as David Smith already outblogged me about it, without further ado our Call for Paper for next spring's R/Finance conference: ...

Read more »

R / Finance 2011 Call for Papers

September 24, 2010
By

Brian announced it on r-help and r-sig-finance and I have since updated the R/Finance website and Call for Papers page. And as David Smith already outblogged me about it, without further ado our Call for Paper for next spring's R/Finance conference: ...

Read more »

Connecting to a MongoDB database from R using Java

September 24, 2010
By
Connecting to a MongoDB database from R using Java

It would be nice if there were an R package, along the lines of RMySQL, for MongoDB. For now there is not – so, how best to get data from a MongoDB database into R? One option is to retrieve JSON via the MongoDB REST interface and parse it using the rjson package. Assuming, for

Read more »

More AQP (algorithms for quantitative pedology) Examples

September 23, 2010
By

The aqp package can be downloaded from R-Forge. read more

Read more »

Higher Order Functions in R

September 23, 2010
By

Introduction Because R is, in part, a functional programming language, the ‘base’ package contains several higher order functions. By higher order functions, I mean functions that take another function as an argument and then do something with that function. If you want to know more about the usefulness of writing higher order functions in general,

Read more »

Effective sample size

September 23, 2010
By
Effective sample size

In the previous days I have received several emails asking for clarification of the effective sample size derivation in “Introducing Monte Carlo Methods with R” (Section 4.4, pp. 98-100). Formula (4.3) gives the Monte Carlo estimate of the variance of a self-normalised importance sampling estimator (note the change from the original version in Introducing Monte

Read more »

Seeing the Big Picture

September 23, 2010
By

Here’s a nice snippet from a 2009 article by Kass that I read yesterday: According to my understanding, laid out above, statistical pragmatism has two main features: it is eclectic and it emphasizes the assumptions that connect statistical models with observed data. The pragmatic view acknowledges that both sides of the frequentist-Bayesian debate made important

Read more »

Global done!

September 23, 2010
By
Global done!

Over the past few weeks I’ve been working at getting Moshtemp to work entirely in the raster package. I’ve been aided greatly by the author of that package, Robert, who has been turning out improvements to the package with regularity. For a while I was a bit stymied by some irregularities in getting source from

Read more »

R/Finance 2011 Call for Papers

September 23, 2010
By

Held annually in Chicago, R/Finance is the conference for R users in the financial services industry. This year's conference included presentations from practitioners and researchers at institutions like Invesco Asset Management, Black Mesa Capital, and some of the leading academic institutions from around the world. Next year's conference, to be held 29-30 April 2011, could include you. If you're...

Read more »

New housedata release 20100923

September 23, 2010
By

New Housedata release of 49,914 summary filings from 7897 candidates for the US House 2002-2010.

Read more »

IIATMS Guest Contribution

September 23, 2010
By
IIATMS Guest Contribution

After my recent posts fiddling around with heat maps for pitch location, Jason at It's About the Money, Stupid contacted me to ask if I would contribute some location maps for Yankee pitchers. Obviously, I couldn't pass up the chance to contribute to ...

Read more »

R Project and Google Summer of Code: Wrapping up

September 23, 2010
By
R Project and Google Summer of Code: Wrapping up

As this year's admin, I wrote up the following summary which has now been posted at the R site in the appropriate slot. My thanks to this year's students, fellow mentors and everybody else who helped to make it happen. ...

Read more »

R Project and Google Summer of Code: Wrapping up

September 23, 2010
By
R Project and Google Summer of Code: Wrapping up

As this year's admin, I wrote up the following summary which has now been posted at the R site in the appropriate slot. My thanks to this year's students, fellow mentors and everybody else who helped to make it happen. Projects 2010 As in 2008 a...

Read more »

R Project and Google Summer of Code: Wrapping up

September 23, 2010
By
R Project and Google Summer of Code: Wrapping up

As this year's admin, I wrote up the following summary which has now been posted at the R site in the appropriate slot. My thanks to this year's students, fellow mentors and everybody else who helped to make it happen. ...

Read more »

Monte Carlo Statistical Methods third edition

September 23, 2010
By
Monte Carlo Statistical Methods third edition

Last week, George Casella and I worked around the clock on starting the third edition of Monte Carlo Statistical Methods by detailing the changes to make and designing the new table of contents. The new edition will not see a revolution in the presentation of the material but rather a more mature perspective on what

Read more »

New World Bank Data Available

September 22, 2010
By
New World Bank Data Available

Just announced:  World Bank Data features and data are available.  Previous posts have demonstrated how to access and plot this data using R (including the use of the R WDI package).  The chart above can be created using the following pr...

Read more »

New World Bank Data Available

September 22, 2010
By
New World Bank Data Available

Just announced:  World Bank Data features and data are available.  Previous posts have demonstrated how to access and plot this data using R (including the use of the R WDI package).  The chart above can be created using the following pr...

Read more »

Guidelines for efficient R programming

September 22, 2010
By

R is designed to make it easy to clearly express statistical ideas in code, but when it come to writing code that runs as fast as possible, there are a few tips, tricks and caveats to be aware of. As part of the BioConductor conference this past summer, Martin Morgan prepared a tutorial on efficient R programming. (Patrick Abouyen...

Read more »

Visualizations of US neighborhoods by race and ethnicity

September 22, 2010
By
Visualizations of US neighborhoods by race and ethnicity

HOMOPHILY + MAPS WITHOUT MAPPING SOFTWARE In the past, Decision Science News has posted about homophily (“birds of a feather shop together“) and cool, lightweight visualizations (“maps without map packages in R“). Today, both topics come together in Eric Fischer’s fascinating set of images on Flickr called “Race and Ethnicity”(*).  According to Eric: Red is

Read more »

Connecting to SQL Server from R using RJDBC

September 22, 2010
By
Connecting to SQL Server from R using RJDBC

A few months ago I switched my laptop from Windows to Ubuntu Linux. I had been connecting to my corporate SQL Server database using RODBC on Windows so I attempted to get ODBC connectivity up and running on Ubuntu. ODBC on Ubuntu turned into an exercise in futility. I spent many hours over many days

Read more »

My Crappy Fantasy Football Draft

September 22, 2010
By
My Crappy Fantasy Football Draft

I compared the results of my fantasy football draft with the results of more than 1500 mock drafts at the Fantasy Football Calculator (FFC).  I looked at where player X was drafted in our league, subtracted off the average draft … Continue reading →

Read more »

R Function of the Day: foodweb

September 21, 2010
By
R Function of the Day: foodweb

The R Function of the Day series will focus on describing in plain language how certain R functions work, focusing on simple examples that you can apply to gain insight into your own data. Today, I will discuss the foodweb function, found in...

Read more »

R Function of the Day: foodweb

September 21, 2010
By
R Function of the Day: foodweb

The R Function of the Day series will focus on describing in plain language how certain R functions work, focusing on simple examples that you can apply to gain insight into your own data. Today, I will discuss the foodweb function, found in...

Read more »

Oil – Equities correlation – trading opportunity or new normal?

September 21, 2010
By
Oil – Equities correlation – trading opportunity or new normal?

The R-Files: Hadley Wickham

September 21, 2010
By
The R-Files: Hadley Wickham

"The R-Files" is an occasional series from Revolution Analytics, where we profile prominent members of the R Community. Name: Hadley Wickham Profession: Assistant Professor of Statistics, Rice University Nationality: New Zealand Years Using R: 10 Known for: Developing popular R packages including ggplot2, plyr, reshape; creator of crantastic.org; author of ggplot2: Elegant Graphics for Data Analysis An Assistant Professor...

Read more »

Classification Trees using the rpart function

September 21, 2010
By
Classification Trees using the rpart function

In a previous post on classification trees we considered using the tree package to fit a classification tree to data divided into known classes. In this post we will look at the alternative function rpart that is available within the base R distribution. Fast Tube by Casper A classification tree can be fitted using the rpart function

Read more »