Doing a t-test using R programming (in 4 minutes)

preview_player
Показать описание
If you are doing statistics or any quantitative analysis using R programming then at some point you'll need to do a t-test. T tests are statistical tests used to compare the mean of two samples. The null hypothesis is usually that the mean (or average) is the same in both groups. Once you've done the test, the p value will give you a sense of whether or not the difference observed is statistically significant. The alpha value is determined ahead of time to define the level of significance required. This is sometimes called the students t-test. You can do paired t-tests or unpaired t tests.

Рекомендации по теме
Комментарии
Автор

Excellent explanation, Greg. Love your simple and precise approach.

Deba
Автор

Exactly what I need to do tomorrow in my dataset thanks!!!! like always u r the best

draprincesa
Автор

Excellent video! I really love this channel. It would be so great if you could do some time series videos in the future.

javiermonroy
Автор

Many thanks, Prof for this Excellent video! But I am referring to your previous video on ''t-test, anova and chi-square' to do the ANOVA of my research. I am now facing 2 issues: 1- I really understand the results because it missing the p-value, 2- I am having error message for the TukeyHSD. Bassically, I want to perform the ANOVA for the mean values for three years (i.e., 2017, 2018 and 2020).
here is the command I run
"abcanova %>%
aov(formula = gprice ~ year, data =.) %>%
TukeyHSD()"
here is the error message

"> abcanova %>%
+ aov(formula = gprice ~ year, data =.) %>%
+ TukeyHSD()
Error in TukeyHSD.aov(.) : no factors in the fitted model
In addition: Warning message:
In replications(paste("~", xx), data = mf) : non-factors ignored: year"

I can share the data if necessary

I need your help thank you

adamacoulibaly
Автор

really excellent video.
please how do you perform a paired t. test when the data is not the same length?

bgbbcvz
Автор

Could you please talk about performing a paired t-test when the data is in wide format i.e. the intervention values are in one column and post-intervention in another?

Malihaezad
Автор

Hi Do you have videos on One Sample Hypothesis T-Test on a Proportion?

jtotherock
Автор

Greg, have used the tiny model infer package for hypothesis testing?

pipertripp
Автор

I found that two.sided had to be quoted

peterschmitt