Sie sind auf Seite 1von 5

SPSS-2

PRESERVE.
SET DECIMAL DOT.

GET DATA /TYPE=TXT


/FILE="E:\excel\Sample_Dataset_2014.txt"
/ENCODING='UTF8'
/DELCASE=LINE
/DELIMITERS="\t"
/ARRANGEMENT=DELIMITED
/FIRSTCASE=2
/DATATYPEMIN PERCENTAGE=95.0
/VARIABLES=
ids AUTO
bday AUTO
enrolldate AUTO
expgradate AUTO
Rank AUTO
Major AUTO
Gender AUTO
Athlete AUTO
Height AUTO
Weight AUTO
Smoking AUTO
Sprint AUTO
MileMinDur AUTO
English AUTO
Reading AUTO
Math AUTO
Writing AUTO
State AUTO
LiveOnCampus AUTO
HowCommute AUTO
CommuteTime AUTO
SleepTime AUTO
StudyTime AUTO
/MAP.
RESTORE.

CACHE.
EXECUTE.

Data written to the working file.


23 variables and 435 cases written.
Variable: ids Type: Number Format : F5
Variable: bday Type: Number Format : ADATE10 One
or more values were set to system-missing.
Variable: enrolldate Type: Number Format : DATE11 One
or more values were set to system-missing.
Variable: expgradate Type: Number Format : DATE11 One
or more values were set to system-missing.
Variable: Rank Type: Number Format : F1 One
or more values were set to system-missing.
Variable: Major Type: String Format : A60 One
or more values were truncated.
Variable: Gender Type: Number Format : F1 One
or more values were set to system-missing.
Variable: Athlete Type: Number Format : F1
Variable: Height Type: Number Format : F5.2 One
or more values were set to system-missing.
Variable: Weight Type: Number Format : F6.2 One
or more values were set to system-missing.
Variable: Smoking Type: Number Format : F1 One
or more values were set to system-missing.
Variable: Sprint Type: Number Format : F5.3 One
or more values were set to system-missing.
Variable: MileMinDur Type: Number Format : TIME8 One
or more values were set to system-missing.
Variable: English Type: Number Format : F6.2 One
or more values were set to system-missing.
Variable: Reading Type: Number Format : F6.2 One
or more values were set to system-missing.
Variable: Math Type: Number Format : F5.2 One
or more values were set to system-missing.
Variable: Writing Type: Number Format : F5.2 One
or more values were set to system-missing.
Variable: State Type: String Format : A12 One
or more values were truncated.
Variable: LiveOnCampus Type: Number Format : F1 One
or more values were set to system-missing.
Variable: HowCommute Type: Number Format : F1 One
or more values were set to system-missing.
Variable: CommuteTime Type: Number Format : F2 One
or more values were set to system-missing.
Variable: SleepTime Type: Number Format : F2 One
or more values were set to system-missing.
Variable: StudyTime Type: Number Format : F2 One
or more values were set to system-missing.

DATASET NAME DataSet6 WINDOW=FRONT.


DESCRIPTIVES VARIABLES=Height
/STATISTICS=MEAN STDDEV MIN MAX.

Descriptives

Notes
Output Created 25-OCT-2018 20:59:10
Comments
Input Data E:\excel\Sample_Dataset_20
14.txt
Active Dataset DataSet6
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data 435
File
Missing Value Handling Definition of Missing User defined missing values
are treated as missing.
Cases Used All non-missing data are
used.
Syntax DESCRIPTIVES
VARIABLES=Height
/STATISTICS=MEAN
STDDEV MIN MAX.
Resources Processor Time 00:00:00.02
Elapsed Time 00:00:00.01

[DataSet6]

Descriptive Statistics
N Minimum Maximum Mean Std. Deviation
Height 408 55.00 84.41 68.0318 5.32566
Valid N (listwise) 408

* Define Variable Properties.


*Gender.
VALUE LABELS Gender
0 'Female'
1 'Male'.
EXECUTE.
* Define Variable Properties.
*Smoking.
VALUE LABELS Smoking
0 'Non Smoker'
1 'Past Smoker'
2 'Current Smoker'.
EXECUTE.
CROSSTABS
/TABLES=Smoking BY Gender
/FORMAT=AVALUE TABLES
/STATISTICS=CHISQ
/CELLS=COUNT
/COUNT ROUND CELL.

Crosstabs

Notes
Output Created 25-OCT-2018 21:02:43
Comments
Input Data E:\excel\Sample_Dataset_20
14.txt
Active Dataset DataSet6
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data 435
File
Missing Value Handling Definition of Missing User-defined missing values
are treated as missing.
Cases Used Statistics for each table are
based on all the cases with
valid data in the specified
range(s) for all variables in
each table.
Syntax CROSSTABS
/TABLES=Smoking BY
Gender
/FORMAT=AVALUE
TABLES
/STATISTICS=CHISQ
/CELLS=COUNT
/COUNT ROUND CELL.
Resources Processor Time 00:00:00.03
Elapsed Time 00:00:00.02
Dimensions Requested 2
Cells Available 524245

Case Processing Summary


Cases
Valid Missing Total
N Percent N Percent N Percent
Smoking * Gender 402 92.4% 33 7.6% 435 100.0%

Smoking * Gender Crosstabulation


Count
Gender
Female Male Total
Smoking Non Smoker 149 148 297
Past Smoker 13 24 37
Current Smoker 31 37 68
Total 193 209 402

Chi-Square Tests
Asymptotic
Significance (2-
Value df sided)
a
Pearson Chi-Square 3.171 2 .205
Likelihood Ratio 3.217 2 .200
Linear-by-Linear Association 1.106 1 .293
N of Valid Cases 402

a. 0 cells (0.0%) have expected count less than 5. The minimum expected
count is 17.76.

Das könnte Ihnen auch gefallen