Publications by Chris Facer
Text analysis: Hooking up your term document matrix to custom R code
I have previously written about some of the text analysis options that are available in Displayr: sentiment analysis, text cleaning, and the predictive tree. As text analysis is a growing field, you likely want to use your own tools on top of those already built into Displayr. To feed information about your text into a statistical algorithm, i...
6868 sym R (720 sym/2 pcs) 4 img
How to analyze max-diff data in R
This post discusses a number of options that are available in R for analyzing data from max-diff experiments, using the package flipMaxDiff. For a more detailed explanation of how to analyze max-diff, and what the outputs mean, you should read the post How max-diff analysis works. The post will cover the processes of installing packages, importi...
5921 sym R (2490 sym/13 pcs) 4 img
How to Combine Complicated Tables in Displayr Using R
You can use R to to splice and dice tables that have been created with Displayr’s built-in statistical engine. This is particularly handy when you want to mix results from numeric data with those for categorical data in the same table, or when combining results into a single table would otherwise require wrangling the data. When you show a sin...
4513 sym R (162 sym/1 pcs) 6 img
Simple Web Scraping in Displayr Using R
In this article I will scrape a data table from a Wikipedia article. The data contains information about life expectancy for different groups within each US state and territory. This is a relatively simple version of web scraping, because it only requires me to obtain a single web page and locate and store a single element of the page. Even bett...
4412 sym R (793 sym/1 pcs) 2 img
How to Calculate Jaccard Coefficients in Displayr Using R
To measure the overlap or similarity between the data in two binary variables you can use a Jaccard coefficient. The coefficient ranges between 0 and 1, with 1 indicating that the two variables overlap completely, and 0 indicating that there are no selections in common. In this post I show you how to do the calculation in Displayr using R, by lo...
5936 sym R (756 sym/1 pcs) 10 img
How to Create a Correlation Matrix in R
A correlation matrix is a table of correlation coefficients for a set of variables used to determine if a relationship exists between the variables. The coefficient indicates both the strength of the relationship as well as the direction (positive vs. negative correlations). In this post I show you how to calculate and visualize a correlation mat...
3184 sym R (541 sym/9 pcs) 8 img