SPSS Macro : Save regression output to a SPSS data file

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

Get Free Email Updates :
*Please confirm your email address by clicking on the link sent to your Email*

Related Posts:

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