October 2014

Twitter Pop-up Analytics

October 20, 2014 | Myles Harrison

IntroductionSo I've been thinking a lot lately. Well, that's always true. I should say, I've been thinking a lot lately about the blog. When I started this blog I was very much into the whole quantified self thing, because it was new to me, I liked the... [Read more...]

The lapply command 101

October 20, 2014 | Steve Pittard

Next up in our review of the family of apply commands we’ll look at the lapply function, which can be used to loop over the elements of a list (or a vector). This is a true convenience although for those with experience in other programming languages it can seem ...
[Read more...]

Degrees of Choice: A modification of a WSJ graphic

October 20, 2014 | Vivek Patil

This post uses ggplot2 and rCharts to modify a grouped bar chart that appeared in an article that appeared online on October 19, 2014 in Wall Street Journal’s site. The article was titled “How to Sell a Liberal-Arts Education”. The code for the Rmarkdown file that generated this post can be ... [Read more...]

Explore R package connections at MRAN

October 20, 2014 | David Smith

Many R scripts depend on CRAN packages, and most CRAN packages in turn depend on other CRAN packages. If you install an R package, you'll also be installing its dependencies to make it work, and possibly other packages as well to enable its full functionality. My colleague Andrie posted some ... [Read more...]

The World We Live In #2: To Study Or To Work

October 19, 2014 | aschinchon

I was getting ready for school and about to wear my uniform when I remembered that our principal had told us not to wear uniforms. So I decided to wear my favorite pink dress (Malala Yousafzai) After reading the diary of a Pakistani schoolgirl and Malala’s history, there is ...
[Read more...]

hts with regressors

October 19, 2014 | Rob J Hyndman

The hts package for R allows for forecasting hierarchical and grouped time series data. The idea is to generate forecasts for all series at all levels of aggregation without imposing the aggregation constraints, and then to reconcile the forecasts so they satisfy the aggregation constraints. (An introduction to reconciling hierarchical ... [Read more...]

Degrees of Choice: Modification of WSJ Graphic

October 19, 2014 | Vivek Patil

This post uses ggplot2 and rCharts to modify a grouped bar chart that appeared in an article that appeared online on October 19, 2014 in Wall Street Journal’s site. The article was titled “How to Sell a Liberal-Arts Education”. The code for the Rmarkdown file that generated this post can be ... [Read more...]

Estimating a Beta Regression with The Variable Dispersion in R

October 19, 2014 | statcompute

[This article was first published on Yet Another Blog in Statistical Computing » S+/R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don't. pkgs <- c('sas7bdat', 'betareg', 'lmtest') lapply(pkgs, require, character.only = T) df1 <- read.sas7bdat("lgd.sas7bdat") df2 <- df1[which(df1$y < 1), ] xvar <- paste("x", 1:7, sep = '', collapse = " + ") fml1 <- as.formula(paste("y ~ ", xvar)) fml2 <- as.formula(paste("y ~ ", xvar, "|", xvar)) # FIT A BETA MODEL WITH THE FIXED PHI beta1 <- betareg(fml1, data = df2) summary(beta1) # Coefficients (mean model with logit link): # Estimate Std. Error z value Pr(>|z|) # (Intercept) -1.500242 0.329670 -4.551 5.35e-06 *** # x1 0.007516 0.026020 0.289 0.772680 # x2 0.429756 0.135899 3.162 0.001565 ** # x3 0.099202 0.022285 4.452 8.53e-06 *** # x4 2.465055 0.415657 5.931 3.02e-09 *** # x5 -0.003687 0.001070 -3.446 0.000568 *** # x6 0.007181 0.001821 3.943 8.06e-05 *** # x7 0.128796 0.186715 0.690 0.490319 # # Phi coefficients (precision model with identity link): # Estimate Std. Error z value Pr(>|z|) # (phi) 3.6868 0.1421 25.95 <2e-16 [...] [Read more...]

littler 0.2.1

October 19, 2014 | Thinking inside the box

A new maintenance release of littler is available now. The main change are a few updates and extensions to the examples provided along with littler. Several of those continue to make use of the wonderful docopt package by Edwin de Jonge. Carl Boetti... [Read more...]

Tuning Laplaces Demon II

October 19, 2014 | Wingfeet

I am continuing with my trying all algorithms of Laplaces Demon. It is actually quite a bit more work than I expected but I do find that some of the things get clearer. Now that I am close to the end of calculating this second batch I learned that ther... [Read more...]

Find the last day of the month

October 17, 2014 | Peter Carl

I have different sets of monthly data that I want to align and evaluate once a month. The different sources report the timestamp of the monthly data differently – one reports the date without the day, another as the last business day, and another as the last day of the month. ... [Read more...]

Statistics doesn’t have to be so hard: simulate!

October 17, 2014 | David Smith

My second-favourite keynote from yesterday's Strata Hadoop World conference was this one, from Pinterest's John Rauser. To many people (especially in the Big Data world), Statistics is a series of complex equations, but a just a little intuition goes a long way to really understanding data. John illustrates this wonderfully ... [Read more...]
1 3 4 5 6 7 11

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)