0
0
R Programmingprogramming~5 mins

t-test in R Programming - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a t-test used for in statistics?
A t-test is used to compare the means of two groups to see if they are significantly different from each other.
Click to reveal answer
beginner
What are the two main types of t-tests?
The two main types are: 1) Independent (two-sample) t-test, which compares means from two different groups, and 2) Paired t-test, which compares means from the same group at different times or conditions.
Click to reveal answer
beginner
In R, which function is used to perform a t-test?
The function t.test() is used to perform a t-test in R.
Click to reveal answer
beginner
What does the p-value from a t-test tell you?
The p-value tells you the probability that the observed difference between groups happened by chance. A small p-value (usually less than 0.05) means the difference is statistically significant.
Click to reveal answer
beginner
How do you specify a paired t-test in R using t.test()?
You set the argument paired = TRUE inside t.test() to perform a paired t-test.
Click to reveal answer
Which R function is used to perform a t-test?
Alm()
Bt.test()
Csummary()
Dmean()
What does a p-value less than 0.05 usually mean in a t-test?
AThe difference between groups is statistically significant
BThe sample size is too small
CThe test was performed incorrectly
DThe difference between groups is likely due to chance
Which argument in t.test() makes it a paired t-test?
Atype = 'paired'
Bpaired = FALSE
Cpaired = TRUE
Dmethod = 'paired'
An independent t-test compares:
AMeans from the same group at two times
BVariances of two groups
CMedian values of two groups
DMeans from two different groups
Which assumption is important for a t-test?
AData should be normally distributed
BData must be categorical
CGroups must have the same number of observations
DData must be binary
Explain what a t-test is and when you would use it.
Think about checking if two groups are really different or just by chance.
You got /4 concepts.
    Describe how to perform a paired t-test in R and what it means.
    Consider situations like measuring before and after treatment on the same people.
    You got /5 concepts.