Scoring/Predicting a Subset in SPSS?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Scoring/Predicting a Subset in SPSS?

mikeyonaboat
Hello SPSS list!

I am trying to apply an existing XML model to my SPSS dataset. However, I only want to apply the model to a subset of my data -- is it possible to create some kind of "filter" or "selection variable" ... so that the regression will only be applied to a subset of the data?

For instance, I have a data set about countries and some attributes, maybe something like:

Country Age Color
USA 15 Grey
Canada 20 Black
Canada 25 Blonde

I only want the model to be applied to the data where country = "Canada". Is it possible to specify a filter like this (so that the predicted values only pop up in the relevant lines of my data)? Or do I have to manually create a subset of the data ? I'm using the scoring wizard. If there's a better way to do it, please let me know!

Thank you for any help!