How does SPSS manage data case training?

0 Preface

  Due to the need for drawing processing in many scenarios such as scientific research, the author has studied SPSS. This article summarizes the study notes through "SPSS Statistical Analysis from Beginner to Master" and its supporting materials combined with relevant online materials. This article explains the management data.

1. Decomposition of data files

  (1) Known data
  insert image description here

  (2) Select the "Data|Split File" command in the menu bar, select "Organize output by group", and group by region
  insert image description here

  (3) Processing results
  insert image description here

2. Horizontal Merge of Data Files

  (1) Known data
  insert image description here

  (2) Select "Data|Merge File|Add Variable" command in the menu bar
  insert image description here

  (3) Processing results
  insert image description here

3. Vertical Merge of Data Files

  (1) Known data
  insert image description here

  (2) Select "Data|Merge File|Add Case" command in the menu bar to open the "Add Case to" dialog box
  insert image description here

  (3) Processing results
  insert image description here

4. Transformation of data files

  (1) Known data
  insert image description here

  (2) Select the "Data | Transpose" command in the menu bar to open the "Transpose" dialog box, and set the variable and name variable
  insert image description here

  (3) Processing results
  insert image description here

5. Weighting of observations

  (1) Known data
  insert image description here

  (2) Select the "Data | Case Weighting" command in the menu bar, and select the case weighting basis
  insert image description here

  (3) Processing results, weights enabled
  insert image description here

6. Create new variables based on existing variables

  (1) Known data
  insert image description here

  (2) In the menu bar, select the "Convert | Calculate Variable" command to customize the target variable
  insert image description here

  (3) Processing results
  insert image description here

7. Generate count variable

  (1) Known data
  insert image description here

  (2) Select the "Transform|Count Values ​​in Cases" command in the menu bar, select the variable to be counted and set the count variable
  insert image description here

  (3) Processing results
  insert image description here

8. Reassign the variable itself

  (1) Known data
  insert image description here

  (2) Select the "Convert | Recode to the same variable" command in the menu bar, select the variable to be reassigned, and define the old value and new value
  insert image description here

  (3) Processing results
  insert image description here

9. Assignment generates new variables

  (1) Known data
  insert image description here

  (2) In the menu bar, select "Convert | Recode to different variables, select the variable to be reassigned, and define the old value and new value
  insert image description here

  (3) Processing results
  insert image description here

10. Finding the level of variable value

  (1) Known data
  insert image description here

  (2) In the menu bar, select the "Transform | Case Ranking" command, select the variable to be reassigned, and make corresponding settings
  insert image description here

  (3) Processing results
  insert image description here

11. Handling of missing data

  (1) Known data
  insert image description here

  (2) Select the "Transform|Replace Missing Values" command in the menu bar, and select the variable to replace the missing values
  insert image description here

  (3) Processing results
  insert image description here

12. Aggregation of data

  (1) Known data
  insert image description here

  (2) Select the "Data|Summary" command in the menu bar, select classification variables and summary variables, and make corresponding settings
  insert image description here

  (3) Processing results
  insert image description here

13. Reorganization from variable groups to observation groups

  (1) Known data
  insert image description here

  (2) Select the "Data | Refactor" command in the menu bar, select the number of variable groups, select the variables to be reorganized, select the number of variables to be indexed, set the parameters of the index variables, set other parameters, and complete the data reorganization
  insert image description here

  (3) Processing results
  insert image description here

14. Reorganization from observation group to variable group

  (1) Known data
  insert image description here

  (2) Select the "Data | Refactor" command in the menu bar, select the number of variable groups, select the variables to be reorganized, select the number of variables to be indexed, set the parameters of the index variables, set other parameters, and complete the data reorganization
  insert image description here

  (3) Processing results
  insert image description here

15. Read Excel software files

  (1) Known data
  insert image description here

  (2) Select the "File | Open" command in the menu bar, and select the file type as Excel
  insert image description here

  (3) Processing results
  insert image description here

16. Read fixed-format text files

  (1) Known data
  insert image description here

  (2) Select the "File | Open" command in the menu bar and select the text format
  insert image description here

  (3) Processing results
  insert image description here

17. Read free-form text files

  (1) Known data
  insert image description here

  (2) Select the "File | Open" command in the menu bar and select the text format
  insert image description here

  (3) Processing results
  insert image description here

References:
[1] Here and Beyond 660. Spss file splitting form 1: splitting files ; 2020-03-23 ​​[accessed 2023-05-03].
[2] Zhang CANDY. Horizontal merging of SPSS data files ; 2019- 10-19 [accessed 2023-05-03].
[3] Lululujia. Vertical merge of SPSS data files ; 2019-10-19 [accessed 2023-05-03].
[4] down. How does SPSS treat variables Weighting-SPSS weighting method for variables ; 2021-11-22 [accessed 2023-05-03].
[5] SPSS Academy. SPSS articles - reassignment of variables ; 2020-03-25 [accessed 2023-05-03] .
[6] DataWriter. How does spss group operations and generate new variables ; 2012-10-08 [accessed 2023-05-03].
[7] hyzen15. How to assign spss grades ; 2022-01-07 [accessed 2023] -05-03].
[8] Mimi Jiji. SPSS missing value processing ; 2021-02-22 [accessed 2023-05-03].
[9] SPSS School.SPSS - Data Summary ; 2020-04-12 [accessed 2023-05-03].
[10] data->intelligence. Reorganization from observation group to variable group ; 2011-10-19 [accessed 2023-05] -03].
[11] Sanyuan. How SPSS reads excel files ; 2021-04-06 [accessed 2023-05-03].
[12] Mlikem520. How SPSS imports txt format text data ; 2022-05-04 [ accessed 2023-05-03].

Guess you like

Origin blog.csdn.net/qq_40640910/article/details/130469416
Recommended