Statistical testing in Tableau with R

Tableau 8.1 just got released! As I wrote before, one of the exciting new features in this release is R integration. Now you can write R scripts inside Tableau calculated fields which opens the door to many new analysis scenarios. To celebrate the release of Tableau 8.1, I put together two new examples to show how you can run different statistical tests inside Tableau.

Statistical tests in Tableau

I took advantage of Tableau parameters to provide an easy way to change the options for the Student’s t-test. Chi-square demo is based on the sample Superstore dataset. For t-test I made up some data for demonstrative purposes. Now that these are done, should I also create a logistic regression example? Or given the positive feedback and interest we saw at R User Groups, I wonder if somebody else will do it before me.

You can download the Tableau workbook from HERE.

10 comments on “Statistical testing in Tableau with R

  1. Juan LP says:

    Thank you. This is a very beautiful post for a Tableau beginner like myself🙂

  2. Riley says:

    Hi Bora!

    Those were extremely well done! Good job and thanks for doing them! They help a lot for someone like me who is trying to learn how to integrate R in Tableau.

    I do have one question I was hoping you might be able to answer/provide some guidance on. How would you be able to conduct an ANOVA in Tableau using R? I know how to do this in R, but am having trouble performing this in Tableau with R.


  3. Mehdi says:

    Thank you and well done

  4. Pam says:

    I was wondering if the link to the workbook still existed or had been moved? I’m trying to do some R/Tableau integration and would love to have a look at your workbook.

  5. Li Yezhou says:

    Hi, I wonder if you have upgraded to Tableau 9? Because it says the calculated field is no longer valid.

    (I have downloaded only the StatisticalTestWithRandTablue.twbx and running Excel 2013 on Mac)

  6. paolotta87 says:

    hi, I tried with my data but I have this error: Error in data.frame(…, check.names = FALSE) : arguments imply differing number of rows: 6, 5 could you please help me understand why? thanks a lot.

  7. Thanks for sharing.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s