Forecasting with daily data

September 17, 2013
By
Forecasting with daily data

I’ve had several emails recently asking how to forecast daily data in R. Unless the time series is very long, the easiest approach is to simply set the frequency attribute to 7. y <- ts(x, frequency=7) Then any of the usual time series forecasting methods should produce reasonable forecasts. For example library(forecast) fit <- ets(y) fc <- forecast(fit) plot(fc) When the time series is long enough to take in more…

Read more »

Attendance in parliament (in Italy)

September 16, 2013
By
Attendance in parliament (in Italy)

Earlier today, I found some interesting data on Italian MPs voting records in the current parliament (which was opened last April). The data are available for both Houses (the Italian system has a lower house, called Camera $-$ effectively the same as ...

Read more »

Visualizing a normal distribution as outcomes from a spinner

September 16, 2013
By
Visualizing a normal distribution as outcomes from a spinner

Mike Meredith has a new blog post showing an animation that converts a spinner to a normal distribution. It shows hows segments of the spinner map to regions under the normal distribution. Give it a look!(Mike Meredith is also the fellow who created th...

Read more »

Data Analysis in the top 9 courses in lifetime enrollment at Coursera!

September 16, 2013
By
Data Analysis in the top 9 courses in lifetime enrollment at Coursera!

Holy cow I just saw this, my Coursera class is in the top 9 by all time enrollment! Top 9 courses on #coursera by lifetime enrollment current as of 9/16- check out & enroll: http://t.co/2X0EJoetoC! pic.twitter.com/d0Sko1KhoD — Coursera (@coursera) September … Continue reading →

Read more »

He’s adult entertainer, Child educator, King of the crossfader, He’s the greatest of the greater, He’s a big bad wolf in your neighborhood, Not bad meaning bad but bad meaning good

September 16, 2013
By
He’s adult entertainer, Child educator, King of the crossfader, He’s the greatest of the greater, He’s a big bad wolf in your neighborhood, Not bad meaning bad but bad meaning good

An offhand mention in this recent post motivated me to google Evilicious. And this is what I found: From the prologue: The idea I [Hauser] develop is that evildoers are made in much the same way that addicts are made. Both processes start with unsatisfied desires. Whether it is a taste for violence or a […]The post He’s adult entertainer, Child educator, King of the crossfader, He’s the greatest of…

Read more »

Lunch and talk on Wednesday

September 16, 2013
By
Lunch and talk on Wednesday

Note: This is a cross-post from Junk Charts. I will be the luncheon speaker at INFORMS NYC on Wednesday in NYC. The talk will provide some context for my new book Numbersense (link), and discuss a few examples from the book. You can pre-register here. INFORMS is the professional society for Operations Research and Management Science people. For some years, I have attended these regularly and learned a lot from…

Read more »

Lunch and talk Wednesday

September 16, 2013
By
Lunch and talk Wednesday

I will be the luncheon speaker at INFORMS NYC on Wednesday in NYC. The talk will provide some context for my new book Numbersense (link), and discuss a few examples from the book. You can pre-register here. INFORMS is the...

Read more »

What versions of R are supported by SAS?

September 16, 2013
By
What versions of R are supported by SAS?

SAS has supported calling R from the SAS/IML language since 2009. The interface to R is part of the SAS/IML language. However, there have been so many versions of SAS and R since 2009, that it is hard to remember which SAS release supports which versions of R. The following [...]

Read more »

Profile Likelihood for New Jersey U.S. Senate Special Election

September 16, 2013
By
Profile Likelihood for New Jersey U.S. Senate Special Election

As it stands right now Cory Booker has a very good chance of winning the New Jersey Special U.S. Senate election on October 16 to replace Frank Lautenberg and fill the remainder of his term for the next 15 months.  So with the election only about a month away I took advantage of some of […]

Read more »

Data Visualization and Journalism Event in San Francisco on September 26

September 16, 2013
By
Data Visualization and Journalism Event in San Francisco on September 26

Visual.ly is hosting an event on data visualization and journalism on September 26 in San Francisco, under the rather clever heading of DV’n'J (think PB&J). I’m one of the speakers. I will be talking about my research on storytelling and where I see visualization going in journalism. Given the audience, The new Story Points feature […]

Read more »

How to learn statistics (Part 2)

September 15, 2013
By
How to learn statistics (Part 2)

Some more help (preaching?) for students of statistics Last week I outlined the first five principles to help people to learn and study statistics. They focussed on how you need to practise in order to be good at statistics and … Continue reading →

Read more »

60 Seconds on Measurement vs. Theory in all the Sciences

September 15, 2013
By

At Penn we have something of a unique tradition, an ongoing series of "60-Second Lectures." Four Penn profs speak each semester, outdoors, at noon on four consecutive Wednesdays. And yes, each of the four lectures is capped at 60 seconds.60-Second...

Read more »

Swiss Jonah Lehrer update

September 15, 2013
By

Nassim Taleb adds this link to the Dobelli story.I’m confused. I thought Swiss dudes were supposed to plagiarize their own stuff, not rip off other people’s. Whassup with that?The post Swiss Jonah Lehrer update appeared first on Statistic...

Read more »

JAGS users: runjags has been updated

September 15, 2013
By
JAGS users: runjags has been updated

Image credit: http://www.potracksgalore.com/accessories/hanging-chains/premierpotrackchains.cfm The package runjags by Matt Denwood has been recently updated. The runjags package has many nice facilities for running JAGS, especially a seamless interfac...

Read more »

The it-gets-me-so-angry-I-can’t-deal-with-it threshold

September 15, 2013
By

I happened to be looking at Slate (I know, I know, but I’d already browsed Gawker and I was desperately avoiding doing real work) and came across this article by Alice Gregory entitled, “I Read Everything Janet Malcolm Ever Published. I’m in awe of her.” I too think Malcolm is an excellent writer, but (a) […]The post The it-gets-me-so-angry-I-can’t-deal-with-it threshold appeared first on Statistical Modeling, Causal Inference, and Social Science.

Read more »

Lab: Only the Answers Have Changed (Introduction to Statistical Computing)

September 15, 2013
By

In which we try our hand at controlling the flow of our code, and learn about the reproducibility of randomized procedures. Lab, R code Introduction to Statistical Computing

Read more »

Writing and Calling Functions (Introduction to Statistical Computing)

September 15, 2013
By

Lecture 4: Just as data structures tie related values together into objects, functions tie related commands together into objects. Declaring functions. Arguments (inputs) and return values (outputs). Named arguments, defaults, and calling functions....

Read more »

Homework: Tweaking Resource-Allocation-by-Tweaking (Introduction to Statistical Computing)

September 15, 2013
By

In which we make incremental improvements to our code for planning by incremental improvements. Assignment, code. Introduction to Statistical Computing

Read more »

Import.io Site Wrapping for the Masses?

September 15, 2013
By
Import.io Site Wrapping for the Masses?

I recently came across a new startup product called import.io. The product provides a site wrapping tool which allows anyone to create wrappers for sites with repeated structured information and thereby access the data on the site. For example, one...

Read more »

“When Bayesian Inference Shatters” Owhadi, Scovel, and Sullivan (guest post)

September 15, 2013
By
“When Bayesian Inference Shatters” Owhadi, Scovel, and Sullivan (guest post)

I’m extremely grateful to Drs. Owhadi, Scovel and Sullivan for replying to my request for “a plain Jane” explication of their interesting paper, “When Bayesian Inference Shatters”, and especially for permission to post it. If readers want to ponder the paper awhile and send me comments for guest posts or “U-PHILS*” (by OCT 15), let […]

Read more »

paste, paste0, and sprintf

September 15, 2013
By
paste, paste0, and sprintf

I find myself pasting urls and lots of little pieces together lately. Now paste is a standard go to guy when you wanna glue some stuff together. But often I find myself pasting and getting stuff like this: Rather than … Continue reading →

Read more »

Mixed models; Random Coefficients, part 2

September 14, 2013
By

Continuing from random coefficients part 1, it is time for the second part. To quote the SAS/STAT manual 'a random coefficients model with error terms that follow a nested structure'. The additional random variable is monthc, which is a factor con...

Read more »

On blogging

September 14, 2013
By

From 1982: The necessary conceit of the essayist must be that in writing down what is obvious to him he is not wasting his reader’s time. The value of what he does will depend on the quality of his perception, not on the length of his manuscript. Too many dull books about literature would have […]The post On blogging appeared first on Statistical Modeling, Causal Inference, and Social Science.

Read more »


Subscribe

Email:

  Subscribe