Le Monde puzzle [#814]

April 1, 2013
By
Le Monde puzzle [#814]

The #814 Le Monde math puzzle was to find 100 digits (between 1 and 10) such that their sum is equal to their product. Given the ten possible values of those digits, this is equivalent to finding integers a1,…,a10 such that a1+…+a10=100 and a1+2a2+…+10a10=2a2x….x10a10, which reduces the number of unknowns from 100 to 10 (or

Read more »

Install R

April 1, 2013
By

Video Files This file contains data on pain score after laparoscopic vs. open hernia repair. Age, gender and primary/recurrent hernia also included. The ultimate aim here is to work out which of these factors are associated with more pain after this operation. lap_hernia Script  

Read more »

Old Price Tables in Modern d3 Visualization

April 1, 2013
By

In my post Dust off 130 Year Old Gold Books on Google Bookshelf, I reproduced some of the old and way out of copyright price tables from the appendices in Gold and Prices Since 1873 by James Laurence Laughlin using latticeExtra xyplot. Now, with the clickme multiline d3 ractive built in my last post

Read more »

New Toy package wingui

April 1, 2013
By

A new toy package that I have been playing with has just been submitted to CRAN.  I called it wingui.  It works off the original windows R GUI.  The idea is to be able to adjust the advanced attributes for the window through a reference object GUI.  Right now it only allows for changing the

Read more »

R User Groups Continue to Grow

April 1, 2013
By
R User Groups Continue to Grow

by Joseph Rickert R user groups seem to be sprouting all over. Since last September we have noticed ten new groups worldwide: Auckland, New Zealand: Auckland-R-Users-Group (AKLRUG) had 33 people attend their March 8th meeting Chang Mai Thailand: Chang Mai is the first R user group in Thailand Durban, South Africa: The Durban R User Group is looking forward...

Read more »

Installing, Loading, and Detaching R Packages

April 1, 2013
By

To install a package in R, the function to be used is install.packages. Let say we want to install the ggplot2 package, well simply code this withTo install more than one package, we do this byNote that in executing the above codes, a dialogue box...

Read more »

A nifty line plot to visualize multivariate time series

April 1, 2013
By
A nifty line plot to visualize multivariate time series

A few days ago a colleague came to me for advice on the interpretation of some data. The dataset was large and included measurements for twenty-six species at several site-year-plot combinations. A substantial amount of effort had clearly been made to ensure every species at every site over several years was documented. I don’t pretend

Read more »

Updating R (on Windows) through a menu-bar: installr 0.9 released on CRAN

April 1, 2013
By
Updating R (on Windows) through a menu-bar: installr 0.9 released on CRAN

In preparation for the upcoming release of R 3.0.0, a new release 0.9 of installr is now on CRAN. The package can be installed and loaded using: # installing/loading the package: if(!require(installr)) { install.packages("installr"); require(installr)} #load / install+load installr The …Read more »

Read more »

R Tackles Big Garbage

April 1, 2013
By
R Tackles Big Garbage

April 1, 2013 – Although the capabilities of the R system for data analytics have been expanding with impressive speed, it has heretofore been missing important fundamental methods. A new function works with the popular plyr package to provide these missing … Continue reading →

Read more »

A pictorial history of US large cap correlation

April 1, 2013
By
A pictorial history of US large cap correlation

How has the distribution of correlations changed over the last several years? Previously Posts about correlation boxplots explained Data Daily returns of 443 large cap US stocks from 2004 through 2012 were used.  The sample correlations — almost 98,000 of them — during each year were created. If we were actually using the correlations, then … Continue reading...

Read more »

The R-Podcast Episode 12: Using Version Control with R

April 1, 2013
By

This is not an April Fool’s joke … The R-Podcast is back once again! In this episode, I discuss the concept of version control and how you can get started with using the Git VCS right now with your R projects. Also I discuss a big batch of listener feedback, and highlight a couple of

Read more »

p-values are (possibly biased) estimates of the probability that the null hypothesis is true

March 31, 2013
By
p-values are (possibly biased) estimates of the probability that the null hypothesis is true

Last week, I posted about statisticians’ constant battle against the belief that the p-value associated (for example) with a regression coefficient is equal to the probability that the null hypothesis is true, for a null hypothesis that beta is zero or negative. I argued that (despite our long pedagogical practice) there are, in fact, many

Read more »

To plot them is my real test

March 31, 2013
By
To plot them is my real test

I almost couldn’t bring myself to post this, but it’s April Fools’ Day, so I’ll never have a better opportunity. This Gist shows how to scrape “stats” and .PNG images from, erm, Bulbapedia, run a simple dimensionality reduction on those “stats,” and plot all 151 original Pokemon. I don’t know much about Pokemon, so I can’t vouch for...

Read more »

R and the last comma

March 31, 2013
By

In R, every comma matters. When creating a vector, c(1, 2, 5) will do the right thing, but add one unfortunate comma and c(1, 2, 5,) will greet you with a deadly Error in c(1, 2, 5, ) : argument 4 is empty. Other languages like Perl are less strict when defining basic data structures: having a comma after...

Read more »

How do Dew and Fog Form? Nature at Work with Temperature, Vapour Pressure, and Partial Pressure

How do Dew and Fog Form?  Nature at Work with Temperature, Vapour Pressure, and Partial Pressure

In the early morning, especially here in Canada, I often see dew – water droplets formed by the condensation of water vapour on outside surfaces, like windows, car roofs, and leaves of trees.  I also sometimes see fog – water droplets or ice crystals that are suspended in air and often blocking visibility at great

Read more »

Gary King and Stuart Shieber on Open Access

March 31, 2013
By

Harvard Professors Gary King and Stuart Shieber provide advice to graduate students about open access, dissertations, and journal publishing. They explain how freely available publications are essential to the scientific community, but also benefit your own career. King suggests a clever way of dealing with publisher copyright agreements to prevent locking up your work behind ...

Read more »

Checking for Normality with Quantile Ranges and the Standard Deviation

Checking for Normality with Quantile Ranges and the Standard Deviation

Introduction I was reading Michael Trosset’s “An Introduction to Statistical Inference and Its Applications with R”, and I learned a basic but interesting fact about the normal distribution’s interquartile range and standard deviation that I had not learned before.  This turns out to be a good way to check for normality in a data set.

Read more »

Easter

March 31, 2013
By
Easter

This morning, there was an interesting post entitled “why does Easter move around so much?” online on http://economist.com/blogs/economist-explains/… In my time series classes, I keep saying that sometimes, series can exhibit seasonlity, but the seasonal effect can be quite irregular. It is the cas for river levels, where snowmelt can have a huge impact, and it is irregular. Similarly, chocolate sales...

Read more »

R function to retrieve pubmed citations from pmid number

March 30, 2013
By

This is useful number if you have hundreds of PMIDs and need specific fields from the pubmed/medline citation.  

Read more »

Importing Data to R

March 30, 2013
By

There are number of ways in importing data into R, and several formats are available,From Excel to R From SPSS to RFrom Stata to R, and more hereIn this post, I'm going to talk about importing common data format that we often encounter, such as Excel, ...

Read more »

RSAGA: Getting Started

March 30, 2013
By

RSAGA provides access to geocomputation capabilities of SAGA GIS from within R environment. Having SAGA GIS installed is a (quite obvious) pre-requirement to use RSAGA. In Linux x64 sometimes additional preparations are needed. In Linux SAGA as we...

Read more »

More ordinal data display

March 30, 2013
By
More ordinal data display

The past two weeks I made a post regarding analyzing ordinal data with R and JAGS. The calculations in the second part made me realize I could actually get top two box intervals out of R. This demonstrated here. For that I needed the inv...

Read more »

Entering Data to R

March 30, 2013
By

To enter data into R, two common and easy to use R functions are utilized.The concatenate function, c; and,The data.frame function.The concatenate function, c, is use for combining data points into a single numeric R object. The usage of this function ...

Read more »

Download and Install R in Ubuntu

March 30, 2013
By
Download and Install R in Ubuntu

There are two ways to install R in Ubuntu. One is through the terminal, and the other is through the Ubuntu Software Center.Through TerminalPress Ctrl+Alt+T to open Terminal Then execute sudo apt-get update After that, sudo apt-get install r-baseT...

Read more »

Download and Install R in Windows

March 30, 2013
By

The R statistical package is available at CRAN website. In this site, do the followingClick the Download R for Windows. Then go to install R for the first time in the base subdirectory. And finally download the latest version of R for windows...

Read more »

Identify 2/3 vacation photos, win $5 Starbucks gift card

March 29, 2013
By
Identify 2/3 vacation photos, win $5 Starbucks gift card

I have a $5 Starbucks gift card that I simply can't remember to use; I've had it since Christmas. So, I will mail it (within the U.S.A.) to the first commenter who can identify the longitude/latitude (within 5km) where two of these three vacation photos were taken (photos below). ***Update 3/30/2013: locations A and C

Read more »

R/Finance 2013 Registration Open

March 29, 2013
By

The registration for R/Finance 2013 -- which will take place May 17 and 18 in Chicago -- is NOW OPEN!Building on the success of the previous conferences in 2009, 2010, 2011 and 2012, we expect more than 250 attendees from around the world. R users from...

Read more »

Facebook profile photo changes reveal trends in support for same-sex marriage

March 29, 2013
By
Facebook profile photo changes reveal trends in support for same-sex marriage

On Tuesday and Wednesday this week, the US Supreme Court heard two landmark cases related to same-sex marriage rights in this country. Simultaneously, to show solidarity for the cause of civil rights for gay members of society, thousands of Facebook users changed their profile pictures to a red equality symbol at the suggestion of the Human Rights Campaign. Most...

Read more »

R on Android

March 29, 2013
By
R on Android

In Riyadh I spent a rainy afternoon trying to work out how this was done (no, not really rainy but stayed indoors instead of driving about the desert). There's not much on the web about it. For at least a year people have been saying there will be an app - and yes, one will eventually appear, but for now...

Read more »

Sponsors

Mango solutions



plotly webpage

dominolab webpage



Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training

datasociety

http://www.eoda.de





ODSC

ODSC

CRC R books series





Six Sigma Online Training









Contact us if you wish to help support R-bloggers, and place your banner here.