for example of data set:
Qn) A developer of food for pig wish to determine what relationship exists among ‘age of a pig’ when it starts receiving a newly developed food supplement, the inital weight of the pig and the amount of weight it gains in a week period with the food supplement. The following information is the result of study of eight piglets.
| Piglet number |
Initial weight (pounds) |
Initial age (weeks) |
Weight gain |
|---|---|---|---|
| 1 | 39 | 8 | 7 |
| 2 | 52 | 6 | 6 |
| 3 | 49 | 7 | 8 |
| 4 | 46 | 12 | 10 |
| 5 | 61 | 9 | 9 |
| 6 | 35 | 6 | 5 |
| 7 | 25 | 7 | 3 |
| 8 | 55 | 4 | 4 |
Goto variable view and add the variables

Goto data view and add the given data.

Click on Analyze tab > Regression > Linear.

Add the dependent variable in Dependent and independent variable in Independent(s). Then click Statistics.

Tick Estimates, Confidence Intervals, Model fit, R squared change, Descriptives, Part and partial correlations and then Continue.

Click Produce all partial plots and Continue.

Click Unstandarized in both tabs and Continue.

Required Output:
Output to open in SPSS.