# Complex Samples Dependent T-Test - Comparing a Sub-Group Mean to Total

From Q

Where is the mean in the total sample and is the mean in the sub-group, and are their respective effective sample sizes, and is the proportion of the total population in sub-group :

,

where:

- ,
- ,
- ,
- ,
- ,
- is the Standard Error of ,
- , or, if
**Weights and significance**is set to**Un-weighted sample size in tests**(see Weights, Effective Sample Size and Design Effects), - is 1 if
**Bessel's correction**is selected for**Proportions**in Statistical Assumptions and 0 otherwise, - and are the estimated standard deviations for the total sample and sub-groups respectively,
- and are the estimated standard error of the means for the total sample and sub-groups respectively,
- is Extra Deff, and
- is the proportion of the Population represents by the sub-group.