



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The Levene's test is used to test if k samples have equal variances (homogeneity of variances). The Levene's test is less sensitive than the Bartlett's test to ...
Typology: Study notes
1 / 43
This page cannot be seen from the preview
Don't miss anything!




































var.test(exam ~ uni, alternative= 'two.sided’, conf.level=.95, data=rexam) F test to compare 2 variances data: exam by uni F = 1.5217, num df = 49, denom df = 49, p = 0. alternative h: ratio of variances not equal to 1 95 % confidence interval:0.8635 - 2. sample estimate: ratio of variances 1.
equal variances (homogeneity of variances). The Bartlett's test is sensitive to departures from normality. That is, if your samples come from non- normal distributions, then a significant Bartlett's test may simply reflect the lack of normality (typeI error)
bartlett.test(exam ~ uni, data=rexam) Bartlett test of homogeneity of variances data: exam by uni Bartlett’s K-squared = 2.122, df = 1, p-value = 0. Bartlett test of homogeneity of variances data: numeracy by uni Bartlett's K-squared = 7.4206, df = 1, p-value = 0. bartlett.test(numeracy ~ uni, data=rexam)
Levene's Test for Homogeneity of Variance (center = median) Df Fvalue Pr(>F) group 1 2.0886 0. 98 Total Degrees of Freedom = 100 - 1 (N – 1)
Levene's Test for Homogeneity of Variance (center = median) Df Fvalue Pr(>F) group 1 5.366 0.02262 * 98 --- Signif. codes: 0 '’ 0.001 '’ 0.01 '’ 0.05 '.’
So, the Data are not Normal… Now What? Transform … and Verify
Logarithmic transformation fx = ln(x) OR log(x) ➢This transformation is useful when:
(x) f(x)
Before After
i
Square Root Transformation
i
Reduces positive skew. Useful for stabilizing variance Before After
Arcsine / Arcsine-squareroot transformation ➢This transformation is useful when dealing with proportional data (e.g., Percent Cover) ➢ Note: data must range between 0 and 1, inclusive. The constant 2 / pi scales the result of arcsin(x) [in radians] to range from 0 to 1, assuming that 0 < x < 1.
Before After
i
of large scores. Beware: This transformation is non-monotonic, because it reverses the scores.
Transform the Data to Fix the Problems… in Rcmdr OR in R Data Manage variables in active data set Compute New Variable
skewness skew.2SE 0.93271513942 1. kurtosis kurt.2SE 0.76349270501 0. S-W test (p < 0.001)
skewness skew.2SE 0.401220988 - 0. kurtosis kurt.2SE
Data transformations are one of the most difficult issues in parametric statistics: