*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
### About Author:

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has close to 7 years of experience in data science and predictive modeling. During his tenure, he has worked with global clients in various domains like retail and commercial banking, Telecom, HR and Automotive.

*While I love having friends who agree, I only learn from those who don't. *
Let's Get Connected: Email | LinkedIn

### Related Posts:

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