Example 2014.12: Changing repeated measures data from wide to narrow format

October 21, 2014
By
Example 2014.12: Changing repeated measures data from wide to narrow format

Data with repeated measures often come to us in the "wide" format, as shown below for the HELP data set we use in our book. Here we show just an ID, the CESD depression measure from four follow-up assessments, plus the baseline CESD. Obs ID CESD1 CESD2 ...

Read more »

Modeling Plenitude and Speciation by Jointly Segmenting Consumers and their Preferences

October 21, 2014
By
Modeling Plenitude and Speciation by Jointly Segmenting Consumers and their Preferences

In 1993, when music was sold in retail stores, it may have been informative to ask about preference across a handful of music genre. Today, now that the consumer has seized control and the music industry has responded, the market has exploded into more...

Read more »

Kernel Density Estimation with Ripley’s Circumferential Correction

October 21, 2014
By
Kernel Density Estimation with Ripley’s Circumferential Correction

The revised version of the paper Kernel Density Estimation with Ripley’s Circumferential Correction with Ewen Gallic is now online, on hal.archives-ouvertes.fr/. In this paper, we investigate (and extend) Ripley’s circumference method to correct bias of density estimation of edges (or frontiers) of regions. The idea of the method was theoretical and difficult to implement. We provide a simple technique —...

Read more »

methylKit for bisulfite sequencing data analysis

October 21, 2014
By

I have been relying upon methylKit, an R package for my RRBS data analysis. It is one the most highly cited R package for analysing bisulifite sequencing data. It is straight forward to install and it's vignette details all the major steps in the ...

Read more »

Easy Clustered Standard Errors in R

October 20, 2014
By

Read more »

Twitter Pop-up Analytics

October 20, 2014
By
Twitter Pop-up Analytics

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
By
The lapply command 101

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 unnecessary since you are accustomed to

Read more »

Degrees of Choice: A modification of a WSJ graphic

October 20, 2014
By

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 found on github.Please click this...

Read more »

Learn dplyr with RStudio and Datacamp

October 20, 2014
By
Learn dplyr with RStudio and Datacamp

RStudio has teamed up with Datacamp to create a new, interactive way to learn dplyr. Dplyr is an R package that provides a fast, intuitive way to transform data sets with R. It introduces five functions, optimized in C++, that can handle ~90% of data manipulation tasks. These functions are lightning fast, which lets you

Read more »

Explore R package connections at MRAN

October 20, 2014
By
Explore R package connections at MRAN

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 R code to map package dependencies a couple of...

Read more »

Tiny Data, Approximate Bayesian Computation and the Socks of Karl Broman

October 20, 2014
By
Tiny Data, Approximate Bayesian Computation and the Socks of Karl Broman

Big data is all the rage, but sometimes you don’t have big data. Sometimes you don’t even have average size data. Sometimes you only have eleven unique socks: Karl Broman is here putting forward a very interesting problem. Interesting, not only because it involves socks, but because it involves what I would like to call Tiny...

Read more »

An Attempt At Replicating Flexible Asset Allocation (FAA)

October 20, 2014
By
An Attempt At Replicating Flexible Asset Allocation (FAA)

Since the people at Alpha Architect were so kind as to feature my blog in a post, I figured I’d … Continue reading →

Read more »

meteoForecast 0.43: GFS, NAM, and RAP included

October 20, 2014
By
meteoForecast 0.43: GFS, NAM, and RAP included

Some months ago I published the meteoForecast package, with functions to download data from the Meteogalicia and OpenMeteo NWP-WRF services. …Sigue leyendo →

Read more »

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

October 19, 2014
By
The World We Live In #2: To Study Or To Work

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 no doubt of being in front

Read more »

hts with regressors

October 19, 2014
By
hts with regressors

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 and grouped time series is

Read more »

Estimating a Beta Regression with The Variable Dispersion in R

October 19, 2014
By
Estimating a Beta Regression with The Variable Dispersion in R

Read more »

littler 0.2.1

October 19, 2014
By
littler 0.2.1

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
By
Tuning Laplaces Demon II

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 »

Removing Uncited References in a Tex File (with R)

October 18, 2014
By
Removing Uncited References in a Tex File (with R)

Last week, with @3wen, we were working a the revised version of our work on smoothing densities of spatial processes (with edge correction). Usually, once you have revised the paper, some references were added, others were droped. But you need to spend some time, to check that all references are actually mentioned in the paper. For instance, consider the...

Read more »

Find the last day of the month

October 17, 2014
By
Find the last day of the month

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. For what I want

Read more »

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

October 17, 2014
By

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 using an example of data collected to determine whether...

Read more »

Add An Export Module to Shiny-app for Highcharts Figure

October 17, 2014
By

Highcharts is the best JavaScript chart library, I feel. By default, there is an export button which can let you save the interactive figure to PNG, JPEG, PDF and SVG format, and one important point is, you can use it in your shiny app through R package rCharts. However, there are some limits in such a way, the default...

Read more »

Design A Bilingual Shiny Application

October 17, 2014
By

(This article was first published on Category: R | Huidong Tian's Blog, and kindly contributed to R-bloggers) It’s a common requirement that your Shiny application should be bilingual. I have tried several methods and finally I got one which is not so difficult to maintain. My idea is: Create a bilingual dictionary or a lookup table which contains three...

Read more »

R User Groups and "after hours" Creativity

October 16, 2014
By
R User Groups and "after hours" Creativity

by Joseph Rickert There is something about R user group meetings that both encourages, and nourshies a certain kind of "after hours" creativity. Maybe it is the pressure of having to make a presentation about stuff you do at work interesting to a general audience, or maybe it is just the desire to reach a high level of play....

Read more »

MilanoR meeting: call for presentations

October 16, 2014
By

MilanoR staff is organizing the next MilanoR meeting. T

Read more »

Where do I start using Bioconductor?

October 15, 2014
By
Where do I start using Bioconductor?

I was recently asked where do I get started with Bioconductor? and thought this would be a good short post. What is BioC? Briefly, Bioconductor (Gentleman, Carey, Bates, and others, 2004) is an open source project that hosts a wide range of tools for...

Read more »

Beware Graphical Networks from Rating Scales without Concrete Referents

October 15, 2014
By
Beware Graphical Networks from Rating Scales without Concrete Referents

We think of latent variables as hidden causes for the correlations among observed measures and rely on factor analysis to reveal the underlying structure. In a previous post, I borrowed an alternative metaphor from the R package qgraph and produce...

Read more »

a bootstrap likelihood approach to Bayesian computation

October 15, 2014
By
a bootstrap likelihood approach to Bayesian computation

This paper by Weixuan Zhu, Juan Miguel Marín , and Fabrizio Leisen proposes an alternative to our 2013 PNAS paper with Kerrie Mengersen and Pierre Pudlo on empirical likelihood ABC, or BCel. The alternative is based on Davison, Hinkley and Worton’s (1992)

Read more »

Rules of thumb to predict how long you will live

October 15, 2014
By
Rules of thumb to predict how long you will live

Figure out how long you will live with these rules of thumb. The post Rules of thumb to predict how long you will live appeared first on Decision Science News.

Read more »