1 Reply Latest reply on Jan 13, 2018 7:46 AM by Norbert Maijoor

    Paired sample t-test and display p value by gender and Age group

    Shiva Wagle

      Hello All,

      I am very new to Tableau and Intermediate to R. I am trying to learn  tableau and R integration. In the attached work book,

      i want to regenerate like worksheet  1  using R code.The work sheet 2 is what I tried using R.

      In worksheet 2 , I am getting trouble to display total number in each group(Gender by age Group. I got 1.00 for all which is wrong). Also how could I performed paired

      sample t test and display P- value (by gender  and Age Group) in  additional column in the work sheet 2

      For the convenience sample data set is attached

       

      thank you very much for the support,

       

      Shiva