Stat A4
Stat A4
Stat A4
SUMMARISING DATA
Categ uni/
bivariate
Create frequency table tab1 var1 OR tabulate var1 var2
Numeric
uni/bivariate
Descriptive stats summary summarise var1, detail OR tabstat var1,
statistics (n mean sd median iqr range)
ONE-SAMPLE TESTS
x2 gof [to get chi2 test statistic] csgof var1, expperc(exp freq1, expfreq2, H0: observed distrib
expfreq3) same as expected
distrib
[to display] display chi2tail(df,test statistic) df = categs-1
TWO-SAMPLE TESTS
ASSUMPTION TESTS
EFFECT SIZES
CONFIDENCE INTERVALS
Critical value: value of z/t that cuts o 5% in both tails of the normal distrib
P-value sig: interval EXcludes mew || P-value not sig: interval INcludes mew
General form for con dence interval: Sample estimate +/- critical value x standard error
Steps
7. Reject/fail H0?
8. Signi cant di ?
Summary
Looking at di erences:
ff
ff
fi
fi
ff
fi
ff
ff
ff
fi
ff
fi
fi
fi
ff