I am trying to use SPSS to build a linear regression on historical data (dependent and independent variables) and then apply this to new data (independent variables only) to generate predicted values and associated prediction intervals.
I've looked in detail at the documentation on the REGRESSION
procedure within SPSS, and while it is obvious how I would get the prediction and interval for the data used to build the regression (using a /SAVE
subcommand to save the temporary variables PRED
, LICIN
and UICIN
) I'm not seeing any functionality that would allow me to apply this to new data.
Essentially I'm looking for the equivalent of PROC SCORE
in SAS, or predict.lm
in R.
R
for this purpose. To my knowledge SPSS is just not made for "reusing" results. However, you could just get the regression coefficients and simply use theCOMPUTE
command to compute the predicted values using the general forumaly = a + bx
$\endgroup$