当前位置:网站首页>How to use Fisher's least significant difference (LSD) in R

How to use Fisher's least significant difference (LSD) in R

2022-06-24 18:38:00 Mrrunsen

One way ANOVA was used to determine whether there were statistically significant differences between the mean values of three or more independent groups .

The assumptions used in one-way ANOVA are as follows :

H 0: The mean value of each group is equal .
H A : At least one of them is different from the others .
If ANOVA Of p The value is less than a certain significance level ( Such as α = .05), We can reject the original hypothesis and draw a conclusion , At least one group mean is different from the others .

But to find out exactly which groups are different from each other , We have to do a post test .

You can use agricolae In bag LSD.test() Function in R Perform this test in .

The following example shows how to use this feature in practice .

Example :R Medium Fisher Of LSD test
Suppose a professor wants to know whether three different learning skills will lead to different test scores

The following table shows the test scores of each student based on the learning techniques they use :
 Insert picture description here

We can use the following code to create this dataset and create it in R Perform one-way ANOVA on it :

#create data frame
df <- data.
原网站

版权声明
本文为[Mrrunsen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241324227346.html