Welcome to R for Marketing Research and Analytics

R for Marketing Research and Analytics by Chris Chapman and Elea McDonnell Feit is designed to teach R to marketing practitioners and data scientists. This site contains the latest, updated .R code files; data files; classroom slides; and errata.

Book cover

Recent Updates

Date Announcement
November 3, 2016 A Chinese translation is now available: China Pub and Amazon China
. Chinese cover
August 15, 2016 Two updates are noted on the errata page to address modeling points from Chapter 13 (conjoint analysis). Also, there are updates to several chapters in the Classroom slides, including classroom exercises for Chapters 2-7.
May 7, 2016 Instructors: Slides for most chapters (all except Chapter 11) are complete, covering most of the code in the book. Slides available here include .R code, HTML presentation, and Markdown source files.
November 12, 2015 In the October 2015 Journal of Statistical Software, Thomas Rusch (Vienna University of Economics and Business) reviewed R for Marketing Research and Analytics, concluding that the book is "a very welcome addition to the Use R! series and the marketing research and business analytics world." Full review in PDF.
November 1, 2015 A new note on the errata page discusses sign direction reversal that may appear in the summary() of variance estimates from mlogit hierarchical models (Chapter 13). This is corrected by using stdev() instead of summary().
September 14, 2015 Slides are available from the PhillyR meetup, demonstrating choice modeling (conjoint analysis) in R. This matches Chapter 13 in the book. Slides in HTML are here; or check the complete folder with R presentation code (.Rpres), etc.
September 14, 2015 Code is available for "Rcbc 0.2" for conjoint analysis didactics and helper functions, mentioned in Chapter 13 (read the comments in the source code for documentation). Direct R code download, Rcbc 0.201.
August 25, 2015 Four minor errata are noted on the errata page.


The book is available in English:

  • Springer
  • Amazon
  • Powell's Books
  • Google Play Store (ebook)
  • And in Chinese:

  • China Pub
  • Amazon China
  • Events


    Selected past events

    Chris and Elea taught a 2-day workshop at the Foster School of Business, University of Washington, January 27-28, 2017, Seattle.

    Chris offered beginning and advanced tutorials at: 2016 SKIM/Sawtooth Software Conference, April 12-15, 2016, Rome.

    Chris discussed the book in an invited talk at: 2015 Joint Statistical Meetings, (JSM), August 12, 2015, Seattle.

    Elea presented "Designing New Products Using Choice Models in R" at: PhillyR Meeting, April 20, 2015, Philadelphia [Slides].