Statistical tests in R Flashcards
(37 cards)
What command is used in R to conduct an independent samples t-test?
t.test
The t.test function is used to compare means between two groups.
What is the null hypothesis in a two-sample test comparing means?
There will be no significant difference in the means
This hypothesis assumes that any observed difference is due to sampling error.
What assumptions must be checked before conducting an independent samples t-test?
- The scatter of points around the means is roughly equal
- The scatter of points around the means follows a normal distribution
What R command checks for equal variance?
var.test
This command tests whether two samples have equal variances.
What is the alternative hypothesis in a two-sample test comparing means?
There will be a significant difference in the means
What is the R command for the Mann-Whitney U test?
wilcox.test
Used for comparing the medians of two groups when the distribution is not normal.
What is the primary purpose of the paired samples t-test?
To compare means of two paired samples
What is the command for a one-way ANOVA in R?
aov
One-way ANOVA is used to compare means across three or more groups.
What is the null hypothesis in a one-way ANOVA?
There will be no significant difference in the means among the groups
What command is used to conduct a Kruskal-Wallis test in R?
kruskal.test
What statistical test is used to analyze the relationship between two numerical variables?
Linear regression
What is the R command for performing linear regression?
lm
The lm function fits a linear model.
What does a correlation coefficient range from?
-1 to 1
What are the assumptions for performing Pearson’s correlation?
- Linear relationship between variables
- Both variables have normal distributions
What command is used to perform a Pearson’s correlation in R?
cor.test(VARIABLE A, VARIABLE B, method = ‘pearson’)
What is the purpose of a Chi-squared contingency table test?
To test the association between two categorical variables
What command is used in R for the Chi-squared test?
chisq.test(x)
What is the alternative hypothesis in a test of association between two categorical variables?
There is a significant association between the variables
What is the significance level often used in hypothesis testing?
0.05
What is the Bonferroni correction used for?
To adjust the significance level when multiple tests are conducted
What does the p-value indicate in hypothesis testing?
The probability of observing the data if the null hypothesis is true
What is the command to check for normal distribution in R?
hist(model$residuals)
What are the three different surgical techniques being compared for follow-up pain?
Technique A, Technique B, Technique C
Specific techniques are not detailed in the text.
Is socio-economic status (SES) associated with the severity of COVID-19 infection?
Yes
SES is often linked to health outcomes.