Exercise

Confounding variable example analysis

You have decided to run your "Tips" versus "Tools" experiment and look at percentage of 'like's. You run the experiment over the month of February. In the later half of February, an article goes viral called "Tips Just Get you Started, but Tools Open all the Doors". Let's see how this article affected results.

The data frame is viz_website_2018_02. All packages have already been loaded for you.

Instructions

100 XP
  • Group by the week column and the column related to condition.

  • Get the mean of the column related to clicking like.

  • To compute the conversion rate depending on if the article was published or not, group by the column that codes if the article is published or not.

  • Name your summarized column the same as you did for the previous aggregation.