Search code examples
spssstackedselect-case

How to select cases in SPSS in a stacked data set


I have a very large (949,000 obs.) stacked (long form) data set. I would like to select cases based on the presence of data in one variable but keep the other stacked data for that Unique ID. Does that make sense?

Do you have any thoughts?


Solution

  • You can certainly do this in Statistics. Use AGGREGATE with the person id as the break variable and, say, the mean as the summary statistic. Choose to have the aggregate stat added to the cases. Then just select those cases where the aggregate is not missing.