10 Flashcards

1
Q

How to count pairs in a table (cross classification)?

A

xtabs(~column1+column2, data)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly