*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

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

ReplyDeleteIt's very helpful for the beginners . Thanks for posting such useful tutorials.

ReplyDelete