Blog Archives

Data Caching

July 28, 2014
By

Data caching is not new. It is often necessary to save intermediate data files when the process of loading and/or manipulating data takes a considerable amount of time. This problem is further complicated when working with dynamic data that changes regularly. In these situations it often sufficient to use data that is current with in some time frame (e.g....

Read more »

Women Graduates in Math, Statistics, and Computer Information Systems

July 3, 2014
By
Women Graduates in Math, Statistics, and Computer Information Systems

One of the more interesting talks at this year’s useR! Conference was the heR Panel discussing the role of women in the R community. They estimate that fewer than 15% of package authors are women. One of the points brought up was that this is less than the percentage of women in statistics. Perhaps this is more...

Read more »

useR 2014 Slides for PSAboot and Version 1.1 on CRAN

July 3, 2014
By

PSAboot is an R package to assist with bootstrapping propensity score methods. I gave a talk today at the useR! 2014 Conference. The slides can be downloaded from the PSAboot Github page or directly here. The package is described at jason.bryer.org/PSA...

Read more »

str Implementation for Data Frames

June 5, 2014
By

The str function is perhaps the most useful function in R. It provides great information about the structure of some object. When I teach R, especially for those coming from SPSS, the str function for data frames provides the information they are use to seeing on the variable view tab. However, sometimes I want to display the information str...

Read more »

Rgitbook Package for Using R Markdown with Gitbook

April 22, 2014
By

Last week I published an R script to interface with Gitbook. I received some positive feedback and decided to include all the code in an R package. This also allowed me to make some nice additions including default support for MathJax. It is currently available on Github and can be installed using devtools: devtools::install_github('jbryer/Rgitbook') I have only tested this...

Read more »

Using Gitbook with R Markdown

April 18, 2014
By
Using Gitbook with R Markdown

Gitbook has been getting some (deserved) attention. For those who haven’t seen it, Gitbook is a system to create really beautiful interactive web (or PDF and ebook) books. For me, the timing of discovering this framework could not be better as I am preparing documentation for propensity score analysis for an upcoming workshop I am giving. Of...

Read more »

Albany, NY R Users Group

March 20, 2014
By

I have started an R Users Group for the Albany, NY area. Hopefully we get enough interest that we can host a meeting in the next couple of months. Please feel free to share with your colleagues and friends. www.meetup.com/Albany-R-Users-Group Feel fr...

Read more »

Function to Simplify Loading and Installing Packages

February 20, 2014
By

One of the more tedious parts of working with R is maintaining my R library. To make my R scripts reproducible and sharable, I will install packages if they are not available. For example, the top of my R scripts tend to look something like this: if(!require(devtools) | !require(ggplot2) | !require(psych) | !require(lme4) | !require(benchmark)) { install.packages(c('devtools','ggplot2','psych','lme4','benchmark')) } This has worked fine for...

Read more »

Bootstrapping for Propensity Score Analysis

November 26, 2013
By
Bootstrapping for Propensity Score Analysis

I am happy to announce that version 1.0 of the PSAboot package has been released to CRAN. This package implements bootstrapping for propensity score analysis. This deviates from typical implementations such as boot in that it allows for separate sampling specifications for treatment and control units. For example, in the case where the ratio of treatment-to-control units is...

Read more »

Workshop and Talk Slides from NEAIR Conference

November 12, 2013
By

I am about to head home from my fifth time attending the North East Association for Institutional Research (NEAIR), this year in Newport, RI, which was just fantastic. Really great people, interesting talks, and good food. I again taught an Introduction to R and LaTeX for Institutional Research pre-conference workshop and also gave a talk on Propensity Score...

Read more »