0

Im looking to confirm that I have my Chi Square test set up correctly. I have 2 variables with 1 observation, which is the count of tweets per each. Im just trying to confirm I have it set up correctly.

Code:

Bridgewater_amount=328
Keenum_amount=1185

Quarterback_dataframe=data.frame(Bridgewater_amount,Keenum_amount)


chisq.test(Keenum_amount,Bridgewater_amount)
J. McCraiton
  • 159
  • 1
  • 2
  • 10
  • What hypothesis do you hope to test with just n=1? – dww Dec 08 '17 at 01:44
  • My Hypothesis is H0: Case amount <= Bridgewater amount and H1: Case amount > Bridgewater amount – J. McCraiton Dec 08 '17 at 01:49
  • For this example, Im collecting Tweets and getting the count but a tweet could fit both of the criteria which is why I broke it out. But it looks like ill need to do it differently – J. McCraiton Dec 08 '17 at 02:08
  • The Chi square test is meant to be used on a 2x2 matrix of counts. You have a 1x2 data set, and it’s stored as a data frame. – jdobres Dec 08 '17 at 02:33

0 Answers0