Stata - PowerPoint PPT Presentation

1 / 31
About This Presentation
Title:

Stata

Description:

8/29/09. H.S. 1. Stata. A statistical package for epidemiologists. 8/29/09. H.S. 2. Packages compared ... Density with min, max and fractiles. 8/29/09. H.S. 18 ... – PowerPoint PPT presentation

Number of Views:227
Avg rating:3.0/5.0
Slides: 32
Provided by: hest
Category:

less

Transcript and Presenter's Notes

Title: Stata


1
Stata
  • A statistical package for epidemiologists

2
Packages compared
3
Packages compared
4
Packages compared
5
Packages compared
6
Why Stata
  • Pro
  • Aimed at epidemiology
  • Many methods, growing
  • Graphics
  • Structured, Programable
  • Comming soon to a course near you
  • Con
  • Memorygtfile size

7
Syntax
  • Full syntax
  • by varlist command varlist if in ,
    options
  • Examples
  • mean age
  • mean age if sex1
  • by sex, sort summarize age
  • summarize age ,detail

8
Ways of working
  • Testing
  • p-values
  • Estimation
  • Estimate with confidence interval

9
Bivariate
10
Mean with CI
  • Advanced features
  • Standarization
  • Clustering
  • Bootstrap

11
Median and percentiles with CI
12
Compare means
13
Compare means, T-test
  • ttest weight, by(sex) unequal uneq. var.
  • ttest var1var2 paired test

14
Graphics
15
Plottypes
16
Legend with extra information
17
Density with min, max and fractiles
18
Scatter with fitline extra point
19
Bar with labels inside
20
Regression results
21
Regression
22
Purpose of regression
  • Prediction
  • Use an estimated model to predict the outcome
    given covariates in a new dataset
  • Estimation
  • Estimate association between outcome and
    covariates adjusted for the other covariates

23
Linear regression
  • Model
  • Model fitting
  • Cofactors in/out
  • Interactions
  • Test of assumptions
  • Independent errors
  • Linear effects
  • Constant error variance
  • Influence, robustness

24
Linear regression, exposure only
25
Add confounders and compare
26
Assumtions and influence
  • Test of assumptions
  • Independent errors
  • Linear effects
  • Constant error variance
  • Influence, robustness

27
Influence
28
Binary regression
  • Odds ratio, OR
  • binreg y x1 x2, or Link logit
  • Risk ratio, RR
  • binreg y x1 x2, rr Link log (ln)
  • Risk difference, RD
  • binreg y x1 x2, rd Link identity

29
Odds ratio, Relative risk, Risk Diff
Problems convergence
30
Help
31
Search for help
  • General
  • help command
  • findit keyword search the net
  • Examples
  • help table
  • findit GAM
  • My home page
  • http//folk.uio.no/heins/

32
Books
  • A visual guide to Stata graphics
    by M.N. Mitchell
  • Data Analysis Using Stata by Ulrich Kohler and
    Frauke Kreuter
  • Statistics with Stata (Updated for Version 9) by
    Lawrence C. Hamilton
  • Multilevel and longitudinal modeling using Stata
    by S. Rabe-Hesketh, A. Skrondal
Write a Comment
User Comments (0)
About PowerShow.com