Using LaTeX, R, and Sweave to Create Reports in Windows

January 30, 2012
By
Using LaTeX, R, and Sweave to Create Reports in Windows

LaTeX is a typesetting system that can easily be used to create reports and scientific articles, and has excellent formatting options for displaying code and mathematical formulas. Sweave is a package in base R that can execute R code embedded in LaTeX files and display the output. This can be used to generate reports and quickly fix errors when needed.There are some barriers to entry with LaTeX that seem much…

Read more »

Random Number Seeds: NOT only the first one matters!

January 30, 2012
By
Random Number Seeds: NOT only the first one matters!

Today, Rick (blog @ here) wrote an article about random number seed in SAS to be used in random number functions in DATA Step. Rick noticed when multiple random number functions are called using different seeds, only the first one matters. This is...

Read more »

Freshman hordes even more godless!

January 29, 2012
By
Freshman hordes even more godless!

[This is an update of an article I wrote last year, "Freshman hordes more godless than ever."  There is a followup to this article here.] For several years I have been following one of the most under-reported stories of the decade: the fraction o...

Read more »

Complete steps for installing software and programs

January 28, 2012
By
Complete steps for installing software and programs

To use the programs, there are five basic installation steps:Install the general programming language R. Go to the R web site and install the latest version of R appropriate for your computer (Windows, Mac, Linux).Install the Bayesian sampling program ...

Read more »

Say it in R with "by", "apply" and friends

January 28, 2012
By
Say it in R with "by", "apply" and friends

Iris versicolor (Source: Wikipedia)R is a language, as Luis Apiolaza pointed out in his recent post. This is absolutely true, and learning a programming language is not much different from learning a foreign language. It takes time and a lot of pr...

Read more »

Replicating NetLogo Fire model

January 27, 2012
By
Replicating NetLogo Fire model

While preparing for the new semester I have started reimplementing standard NetLogo examples in R. The first is Fire model.The simulation in R is presented here:# Forest matrix trees encoding:# 3 – green, 2 – burning, 1 – burnt, 0 – no treesimu...

Read more »

RStudio, BibTex, and LaTeX

January 27, 2012
By

I was having a little trouble getting RStudio to process BibTex entries and compile a LaTeX file. Bumping around on the great RStudio help forum, I found this entry, which pointed me in the direction. I needed to set a system environment variable in R ...

Read more »

Think Complexity, Part Two

January 27, 2012
By
Think Complexity, Part Two

My new book, Think Complexity, will be published by O'Reilly Media in March. For people who can't stand to wait that long, I am publishing excerpts here.  If you really can't wait, you can read the free version at&nbs...

Read more »

Parallel R Model Prediction Building and Analytics

January 27, 2012
By
Parallel R Model Prediction Building and Analytics

Modifying R code to run in parallel can lead to huge performance gains. Although a significant amount of code can easily be run in parallel, there are some learning techniques, such as the Support Vector Machine, that cannot be easily parallelized. ...

Read more »

Parallel R Model Prediction Building and Analytics

January 27, 2012
By

Modifying R code to run in parallel can lead to huge performance gains. Although a significant amount of code can easily be run in parallel, there are some learning techniques, such as the Support Vector Machine, that cannot be easily parallelized. H...

Read more »

Parallel R Model Prediction Building and Analytics

January 27, 2012
By
Parallel R Model Prediction Building and Analytics

Modifying R code to run in parallel can lead to huge performance gains. Although a significant amount of code can easily be run in parallel, there are some learning techniques, such as the Support Vector Machine, that cannot be easily parallelized. How...

Read more »

SAS Macro Simplifies SAS and R integration (Updated)

January 26, 2012
By
SAS Macro Simplifies SAS and R integration (Updated)

Many of us feel very enthusiastic about R. It's free, it features cutting edge applications, it has a large community of users contributing for mutual benefit, and on and on. There are also many things to like about SAS, including stability, backwards...

Read more »

Parallel R Model Prediction Building and Analytics

January 26, 2012
By
Parallel R Model Prediction Building and Analytics

Modifying R code to run in parallel can lead to huge performance gains. Although a significant amount of code can easily be run in parallel, there are some learning techniques, such as the Support Vector Machine, that cannot be easily parallelized. Ho...

Read more »

ESPN Prediction Performance for the NFL

January 25, 2012
By
ESPN Prediction Performance for the NFL

Description: ESPN 'experts' predict the National Football League wins/losses each week.  The above chart shows the percentage of their correct guesses and an overall trend, week by week. Data: http://espn.go.com/nfl/picks Analysis: ...

Read more »

Geocode your data using, R, JSON and Google Maps’ Geocoding APIs

January 24, 2012
By

Over the last year and half, I have faced numerous challenges with geocoding the data that I have used to showcase my passion for location analytics.  In 2012, I decided to take thing in my control and turned to R.  Here, I am sharing a simpl...

Read more »

Geocode your data using, R, JSON and Google Maps’ Geocoding APIs

January 24, 2012
By

Over the last year and half, I have faced numerous challenges with geocoding the data that I have used to showcase my passion for location analytics.  In 2012, I decided to take thing in my control and turned to R.  Here, I am sharing a simpl...

Read more »

Analyzing US Government Contract Awards in R

January 24, 2012
By
Analyzing US Government Contract Awards in R

As I was exploring open data sources, I came across USA spending. This site contains information on US government contract awards and other disbursements, such as grants and loans. In this post, we will look at data on contracts awarded in the state...

Read more »

Analyzing US Government Contract Awards in R

January 24, 2012
By
Analyzing US Government Contract Awards in R

As I was exploring open data sources, I came across USA spending. This site contains information on US government contract awards and other disbursements, such as grants and loans. In this post, we will look at data on contracts awarded in the state ...

Read more »

Analyzing US Government Contract Awards in R

January 23, 2012
By
Analyzing US Government Contract Awards in R

As I was exploring open data sources, I came across USA spending. This site contains information on US government contract awards and other disbursements, such as grants and loans. In this post, we will look at data on contracts awarded in the state of...

Read more »

Think Complexity

January 23, 2012
By
Think Complexity

Think Complexity On Friday I turned in the manuscript for Think Complexity, which will be published by O'Reilly Media in March (or, at least, that's the schedule). For people who can't stand to wait that long, I am going to publish exce...

Read more »

Analyzing US Government Contract Awards in R

January 23, 2012
By
Analyzing US Government Contract Awards in R

As I was exploring open data sources, I came across USA spending. This site contains information on US government contract awards and other disbursements, such as grants and loans. In this post, we will look at data on contracts awarded in the state o...

Read more »

Simulating average height of a random binary search tree

January 22, 2012
By
Simulating average height of a random binary search tree

Recently on Stack Overflow I have found a discussion on Average height of a binary search tree. The problem has been solved analytically, see for example Reed (2003). However, I was intrigued by one of the answers that presented a simulation ...

Read more »

Jocular Disbelief

January 22, 2012
By
Jocular Disbelief

Posted by Yann LeCun  -  Jan 19, 2012  -  Public Google+Joke of the day (true story, circa 2004):Radford Neal (giving a talk): I don't necessarily think that the Bayesian method is the best thing to do in all cases...Geoff Hinton: S...

Read more »


Subscribe

Email:

  Subscribe