SPSS Macro : Save regression output to a SPSS data file

Deepanshu Bhalla 2 Comments
Suppose you want to run a simple regression analysis including 4 variables. Only 2 variables can be used at a time. One variable would be a dependent one and the other one an independent one.This process would be repeated 3 times for 4 variables. Also you want the analysis to be saved in SPSS data file.

The following is the macro to run simple regression considering two variables at a time and saving it to SPSS data file.



How to use :

1. Go to File >> New >> Syntax

2. Paste the above syntax to syntax editor

3. Search  /DEPENDENT VAR1

Replace VAR1 with your dependent variable name

4. In the last line of syntax, define your independent variables

Replace VAR2 VAR3 VAR4 with your independent variables

Related Posts
Spread the Word!
Share
About Author:
Deepanshu Bhalla

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 10 years of experience in data science. During his tenure, he worked with global clients in various domains like Banking, Insurance, Private Equity, Telecom and HR.

Post Comment 2 Responses to "SPSS Macro : Save regression output to a SPSS data file"
  1. It's very helpful for the beginners . Thanks for posting such useful tutorials.

    ReplyDelete
  2. It's very helpful for the beginners . Thanks for posting such useful tutorials.

    ReplyDelete
Next → ← Prev