January 2014

Free books on statistical learning

January 29, 2014 | Rob J Hyndman

Hastie, Tibshirani and Friedman’s Elements of Statistical Learning first appeared in 2001 and is already a classic. It is my go-to book when I need a quick refresher on a machine learning algorithm. I like it because it is written using the language and perspective of statistics, and provides a ... [Read more...]

Inference for MA(q) Time Series

January 29, 2014 | arthur charpentier

Yesterday, we’ve seen how inference for time series was possible.  I started  with that one because it is actually the simple case. For instance, we can use ordinary least squares. There might be some possible bias (see e.g. White (1961)), but asymptotically, estimators are fine (consistent, with asymptotic normality). ... [Read more...]

Data corruption in R 3.0.2 when using read.csv

January 29, 2014 | John Myles White

Introduction It may be old news to some, but I just recently discovered that the automatic type inference system that R uses when parsing CSV files assumes that data sets will never contain 64-bit integer values. Specially, if an integer value read from a CSV file is too large to ... [Read more...]

Stupid R Tricks: Random Scope

January 29, 2014 | Bob Carpenter

Andrew and I have been discussing how we’re going to define functions in Stan for defining systems of differential equations; see our evolving ode design doc; comments welcome, of course. About Scope I mentioned to Andrew I would prefer pure lexical, static scoping, as found in languages like C++ ... [Read more...]

Comparing multiple (g)lm in one graph #rstats

January 29, 2014 | Daniel

It’s been a while since a user of my plotting-functions asked whether it would be possible to compare multiple (generalized) linear models in one graph (see comment). While it is already possible to compare multiple models as table output, I now managed to build a function that plots several (... [Read more...]

Inference for AR(p) Time Series

January 28, 2014 | arthur charpentier

Consider a (stationary) autoregressive process, say of order 2, for some white noise with variance . Here is a code to generate such a process, __ phi1=.25 __ phi2=.7 __ n=1000 __ set.seed(1) __ e=rnorm(n) __ Z=rep(0,n) __ for(t in 3:n) Z[t]=phi1*Z[t-1]+phi2*Z[t-2]+e[t] __ Z=Z[800:1000] __ ... [Read more...]

cut, baby, cut!

January 28, 2014 | xi'an

At MCMSki IV, I attended (and chaired) a session where Martyn Plummer presented some developments on cut models. As I was not sure I had gotten the idea [although this happened to be one of those few sessions where [Read more...]

Time series data in R

January 28, 2014 | Rob J Hyndman

There is no shortage of time series data available on the web for use in student projects, or self-learning, or to test out new forecasting algorithms. It is now relatively easy to access these data sets directly in R. M Competition data The 1001 series from the M-competition and the 3003 series ... [Read more...]

Binomial testing with buttered toast

January 28, 2014 | Markus Gesmann

Rasmus' post of last week on binomial testing made me think about p-values and testing again. In my head I was tossing coins, thinking about gender diversity and toast. The toast and tossing a buttered toast in particular was the most helpful thought experiment, as I didn't have a fixed ... [Read more...]

Analyzing Sleep with Sleep Cycle App and R

January 28, 2014 | Chris

I have been tracking my sleep for almost two years now using my Fitbit. I started with the Fitbit Ultra and then moved on the the Fitbit One after it came out. In October 2013 I found out about the Sleep Cycle (Link) app for the iPhone. For weeks, Sleep Cycle ...
[Read more...]

Ryan Peek on Creating Shiny Apps

January 28, 2014 | Noam Ross

Yesterday at the Davis R User’s Group1, Ryan Peek gave a talk about using the shiny package to create interactive web apps with R. Here are his slides. Ryan includes a bunch of links to examples and tutorials, as well as his own thermohydrographs app: Thanks to Revolution Analytics ... [Read more...]

Finding out repeated variables in multiple datasets

January 28, 2014 | Daniel

Few days ago I posted on doing a smart job on importing several data files alike from a directory. Today, I want to return to this topic, but stretching it a bit further by adding some complexity. I want to have a snapshot of the datasets even before starting work ... [Read more...]

Bias of Hill Estimators

January 28, 2014 | arthur charpentier

In the MAT8595 course, we’ve seen yesterday Hill estimator of the tail index. To be more specific, we did see see that if , with , then Hill estimators for are given by for . Then we did say that satisfies some consistency in the sense that if , but not too fast, ... [Read more...]
1 2 3 4 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)