10 Flashcards
1
Q
How to count pairs in a table (cross classification)?
A
xtabs(~column1+column2, data)
2
Q
Chi-squared test to determine whether two variables are independent?
A
results = chisq.test(matrix), assumption: expected value at least 5 results$expected
3
Q
Chi-squared goodness of fit test?
A
H0 is when there are many proportions as probabilities x/6 that equal to one at the end. Ha when at least one of these are wrong.
results <- chisq.test(observed, probabilities,
results$expected at least 5