Related Experiment Video
Updated: Oct 19, 2025

Applying an eMASS Customization Program as a Research Tool to Evaluate Consumer Benefits
Published on: September 27, 2019
Comparing group means with the total mean in random samples, surveys, and large-scale assessments: A tutorial and
Sebastian Weirich1, Martin Hecht2,3, Benjamin Becker4
1Institute for Educational Quality Improvement, Humboldt-Universität zu Berlin, Unter den Linden 6, 10099, Berlin, Germany. sebastian.weirich@iqb.hu-berlin.de.
Abstract:
In many disciplines of the social sciences, comparisons between a group mean and the total mean is a common but also challenging task. As one solution to this statistical testing problem, we propose using linear regression with weighted effect coding. For random samples, this procedure is straightforward and easy to implement by means of standard statistical software. However, for complex or clustered samples with imputed or weighted data, which are common in survey analyses, there is a lack of easy-to-use software solutions. In this paper, we discuss scenarios that are commonly encountered in the social sciences such as heterogeneous variances, weighted samples, and clustered samples, and we describe how group means can be compared to the total mean in these situations. We introduce the R package eatRep, which is a front end that makes the presented methods easily accessible for researchers. Two empirical examples, one using survey data (MIDUS 1) and the other using large-scale assessment data (PISA 2015), are given for illustration. Annotated R code to run group to total mean comparisons is provided.
Related Concept Videos
Random Sampling Method
Group Design
Sampling Distribution
Comparing the Survival Analysis of Two or More Groups
One-Way ANOVA: Equal Sample Sizes
Different sample means can result in different values for the variance estimate: variance between samples. This is because the variance between samples is calculated as the product of the sample size and the variance between the...
Central Limit Theorem
The sample size, n, that...

