SPSS
Cand.Scient.San Karl Bang Christensen
http://publicifsv.sund.ku.dk/~kach/SPSS/
Oversigt
• Eksempel
– Data fra træningsstudie i lungecancerpatienter
• Dataindlæsning
• Databehandling
• Statistik
Eksempel
Oversigt
• Eksempel
– Data fra træningsstudie i lungecancerpatienter
• Dataindlæsning
• Databehandling
• Statistik
Dataindlæsning
• SPSS kan indlæse (f.eks.) Excel
– Husk kun at indlæse det som er data
– Og at det ikke er alt SPSS kan forstå
Data
Data 2
Bliver ignoreret
Data 3
Kan give forkerte resultater
Oversigt
• Eksempel
– Data fra træningsstudie i lungecancerpatienter
• Dataindlæsning
• Databehandling
• Statistik
Kode ny variabel
• Vil lave kode BMI som variabel ud fra højde og vægt
– Transform…
– Compute Variable…
Kode ny variabel
• Vil lave kode BMI som variabel ud fra højde og vægt
– Transform…
– Compute Variable…
– Target variable…
Kode ny variabel
• Vil lave kode BMI som variabel ud fra højde og vægt
– Transform…
– Compute Variable…
– Target variable…
• Navngiv ny variabel ‘BMI’
Kode ny variabel
• Vil lave kode BMI som variabel ud fra højde og vægt
– Transform…
– Compute Variable…
– Target variable… • Navngiv ny variabel ‘BMI’
– Skriv formel
Kode ny variabel (2)
• Vil lave kategorisk BMI variabel
– Transform
– Recode in Different Variables…
Kode ny variabel (2)
• Vil lave kategorisk BMI variabel
– Transform
– Recode in Different Variables…
– Vælg BMI
Kode ny variabel (2)
• Vil lave kategorisk BMI variabel
– Transform
– Recode in Different Variables…
– Vælg BMI
– Skriv navn ny variabel under ‘Name’
• bmigroup
Kode ny variabel (2)
• Vil lave kategorisk BMI variabel
– Transform
– Recode in Different Variables…
– Vælg BMI
– Skriv navn ny variabel under ‘Name’
• bmigroup
– Angiv sammenhæng mellem gamle og nye værdier
Oversigt
• Eksempel
– Data fra træningsstudie i lungecancerpatienter
• Dataindlæsning
• Databehandling
• Statistik
Statistik • deskriptiv statistik
– histogram
– means
• SEM
• frekvenstabeller
– crosstabs
• boxplot
• t-test
– one sample t-test
– two sample t-test
– paired t-test
• scatter plot
• lineær regression
Deskriptiv statistik
• Analyze…
• Descriptive statistics…
• Descriptives…
Deskriptiv statistik
• Analyze…
• Descriptive statistics…
• Descriptives…
– Vælg ‘Variable(s)’ fra liste
Deskriptiv statistik
• Analyze…
• Descriptive statistics…
• Descriptives…
– Vælg ‘Variable(s)’ fra liste
– Tryk på ‘Options’ Vælg (f.eks.) mean, median
histogram
• Graphs…
• Legacy dialogs…
• Histogram…
histogram
• Graphs…
• Legacy dialogs…
• Histogram…
• Vælg ‘Variable’
– Sæt evt. flueben ved ‘Display normal curve’
Output
Means
• Analyse
• compare means
• Dependent list
• Independent list
Output
SEM
• Standard error of the mean for hele stikprøven
• Analyze…
• Descriptive statistics…
• Descriptives…
– Vælg ‘Variable(s)’ fra liste
– Tryk på ‘Options’ Vælg ‘S.E. mean’
SEM
• Standard error of the mean for forskellige grupper
• Analyze…
• Compare means…
• Means…
– Vælg ‘Variable(s)’ fra liste
– Tryk på ‘Options’ Vælg ‘Std. Error of Mean’
frekvenstabeller
• Descriptive statistics…
• Frequencies…
frekvenstabeller
• Descriptive statistics…
• Frequencies…
• Vælg ‘Variable(s)’
– Husk flueben i ‘Display frequency tables’
Output