Skip to content

Instantly share code, notes, and snippets.

@lionelyoung
Last active December 14, 2015 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lionelyoung/5140940 to your computer and use it in GitHub Desktop.
Save lionelyoung/5140940 to your computer and use it in GitHub Desktop.
Adwords Chi-Squared in R
kw = read.csv("~/Downloads/keywords.csv", skip=1)
kw.conv <- subset(kw, Keyword.state == "enabled" & Conv...1.per.click. > 0)
View(kw.conv)
convs <- unlist(c(kw.conv["Conv...1.per.click."]))
clicks <- unlist(c(kw.conv["Clicks"]))
prop.test(convs,clicks,alternative=c("greater"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment