s pss workshop

Upload: dilshad-shah

Post on 03-Jun-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/11/2019 s Pss Workshop

    1/32

    Introduction to SPSS

    DILSHAD HUSSAIN SHAH

    MINHAJ UNIVERSITY [email protected]

    [email protected]

  • 8/11/2019 s Pss Workshop

    2/32

    SPSS Workshop Agenda

    Layout of the Program

    Adding Data to SPSS

    Preparing Data for Analysis

    Creating New Variables

    Descriptive Data Analysis

    Working with SPSS Output

  • 8/11/2019 s Pss Workshop

    3/32

    Layout of the SPSS Program

    SPSS Program Windows

    Menus and Toolbars

    SPSS Options

  • 8/11/2019 s Pss Workshop

    4/32

    SPSS Program Windows

    SPSS Program Windows Data Editor

    Data View

    Variable View

    Output Viewer Syntax Editor

    File Types

    Data:filename.sav

    Output:filename.spo Commands:filename.sps

    Menus and Toolbars

  • 8/11/2019 s Pss Workshop

    5/32

  • 8/11/2019 s Pss Workshop

    6/32

    More SPSS Options

    Output LabelsTab

    For Pivot Table Labeling:

    Variables in labels shown as

    Names and Labels

    Variable values in labels shownas Values and Labels

    Pivot tables Tab

    For Tablelook:

    ChooseAcademic (narrow).tlo

    http://courses.csusm.edu/resources/spss/

  • 8/11/2019 s Pss Workshop

    7/32

    Adding Data to SPSS

    Use Syntax to Read an Existing Data File

    In-line Data in a Syntax File

    The SPSS Text Import Wizard

    Data Entry in the SPSS Data Editor

    Import from Excel

    /

  • 8/11/2019 s Pss Workshop

    8/32

    Loading Data Using Text Wizard

    The SPSS Text ImportWizard:

    FileMenu:

    Read Text Data

    In Open Data box, enter:C:\SPSS\grades.txt

    Step 1: choose No, Next

    Step 2: choose Fixed

    Width, No, Next Step 3: use defaults: Next

    Step 4: use defaults: Next

  • 8/11/2019 s Pss Workshop

    9/32

    Loading Data Using Text Wizard

    The SPSS Text Import

    Wizard:

    Step 5: Use these names

    and formats: V1: ID, Numeric

    V2: Gender, String

    V3: Test1, Numeric

    V4: Test2, Numeric

    V5: Test3, Numeric

    Click on Next

  • 8/11/2019 s Pss Workshop

    10/32

  • 8/11/2019 s Pss Workshop

    11/32

    Loading Data Using Syntax

    You can re-use a syntaxfile by opening it andrunning it

    Filemenu

    Open Syntax

    You can open a blanksyntax window to type inyour own commands

    Filemenu

    New

    Syntax

  • 8/11/2019 s Pss Workshop

    12/32

    Other Ways to Load Data

    Data Entry in the SPSS

    Data Editor

    Import from Excel FileMenu:

    Open

    Data

    In Open Data box, enter:C:\SPSS\grades.xls

    Click OKfor defaults

  • 8/11/2019 s Pss Workshop

    13/32

    Preparing Data for Analysis

    Variable Formats

    Variable Labels Value Labels

    Missing Values

    Copying Data Properties

  • 8/11/2019 s Pss Workshop

    14/32

    Formatting Your Variables

    Variable Formats

    Click on the Variable Viewtab of the Data Editor toedit or display formats

    Name Type

    Width Decimals Label Values

    Missing Columns Align

    Measure

    Variable Labels

    Type in descriptive text

    that explains what thevariable measures

  • 8/11/2019 s Pss Workshop

    15/32

    Formatting Your Variables (cont.)

    Value Labels Text thatexplains what numericvalues stand for

    Click in the cell of the Valuecolumn for your variable,

    enter a Valueand Label, clickAdd

    Missing Values Definesvalues that should not beincluded in calculations

    Click in the cell of the Missingcolumn for the variable,choose either Discrete orRangeand enter the values

  • 8/11/2019 s Pss Workshop

    16/32

    Creating New Variables

    Collapsing Variables Using Recode

    Computing Variables

    Counting Values in Other Variables

    Ranking Cases

    Date and Time Variables

    /

  • 8/11/2019 s Pss Workshop

    17/32

    Recoding Variables

    Recoding renumbers orcollapses the values of avariable

    Transformmenu

    Recode into differentvariables

    Highlight variable(s) andmove over with arrow

    Fill in a Nameand Labelfor the new variable

    Click Old and New Values

  • 8/11/2019 s Pss Workshop

    18/32

    Recoding Variables

    Specify the Old Value

    e.g., 90 through 100, 80through 89, etc.

    Specify a New Value

    e.g., 4 (for an A), 3(for a B),etc.

    Click on theAddbutton

    Repeat until all old and newvalues are specified

    Old values can be defined as

    single values, ranges ormissing values

    Add value and variable labels,etc.

  • 8/11/2019 s Pss Workshop

    19/32

    Computing New Variables

    Create new variablesusing equations orfunctions

    Transformmenu

    Compute Variable

    Enter a Target VariableName e.g. TestAvg

    Build a Numeric

    Expression E.g. (Test1 + Test2 +

    Test3)/3

    Click OK

  • 8/11/2019 s Pss Workshop

    20/32

    Other Ways to Create Variables

    Counting Values in

    Other Variables

    Ranking Cases

    Date and Time Variables

  • 8/11/2019 s Pss Workshop

    21/32

  • 8/11/2019 s Pss Workshop

    22/32

    The FREQUENCIES Procedure

    FREQUENCIEScreates tables

    with counts of cases for each

    value of the variable

    AnalyzeMenu:

    Descriptive Statistics

    Frequencies

    Highlight variablesto create

    tables, click the arrowto add

    to variable list, then click OK Statistics, Chartand Format

    options are available

  • 8/11/2019 s Pss Workshop

    23/32

    FREQUENCIES Output

    1. Command syntax

    2. Summary statistics

    3. Variable values and

    corresponding labels4. Frequency counts for

    each value

    5. Percentages

    1. Raw percent2. Valid percents

    3. Cumulative percents

  • 8/11/2019 s Pss Workshop

    24/32

    The DESCRIPTIVES Procedure

    DESCRIPTIVEScreatestables with summaries ofvalues for variables

    AnalyzeMenu:

    Descriptive Statistics

    Descriptives

    Highlight variables tocreate tables, click thearrowto add to variable list,

    then click OK Optionsare available to

    choose different statistics

  • 8/11/2019 s Pss Workshop

    25/32

    DESCRIPTIVES Output

    1. Command syntax

    2. Variable name and

    label3. Number of cases

    4. Statistics:

    Minimum

    Maximum

    Mean

    Standard Deviation

  • 8/11/2019 s Pss Workshop

    26/32

    The CROSSTABS Procedure

    CROSSTABS displays theintersection of values of two

    or more variables

    AnalyzeMenu:

    Descriptive Statistics

    Crosstabs

    Highlight variablesto create

    tables, click the arrowto add

    to Row, Columnor Layer

    variable lists, then click OK Statistics, Cellsand Format

    options are available

  • 8/11/2019 s Pss Workshop

    27/32

    Crosstabs Output

    1. Table title

    2. Column variables

    3. Row variables

    4. Cell counts (# of cases)

    5. Column percents (% of

    cases in column)

    6. Statistics

  • 8/11/2019 s Pss Workshop

    28/32

    The MEANS Procedure

    MEANS calculates overallmeans and group means(defined by independentvariables)

    AnalyzeMenu:

    Descriptive Statistics Means

    Highlight variablesto createtables, click the arrowto addto Dependent or Independentvariable lists, then click OK

    Optional Statistics areavailable

  • 8/11/2019 s Pss Workshop

    29/32

    MEANS Output

    1. Command syntax

    2. Numbers of cases

    included and excluded

    3. Dependent variable

    4. Independent (group)

    variable

    5. Means

    6. Number of cases

    7. Standard Deviations

  • 8/11/2019 s Pss Workshop

    30/32

    Working with SPSS Output

    Editing/Manipulating Tables

    Exporting Output to a File

    Copying and Pasting Output

  • 8/11/2019 s Pss Workshop

    31/32

  • 8/11/2019 s Pss Workshop

    32/32

    Exporting SPSS Output to a File

    SPSS output can be

    exported to other

    programs

    Either entire output file,or selected tables

    Export to Word, HTML,

    Excel, Text, PDF, or

    PowerPoint