Aggregate variables based on mode

I have 4 variables that I would like to aggregate into 1 individual variable. All 4 variables have a categorical value range between 1-3. I would like to aggregate the 4 variables based on their mode value. How can I do this?


TS Contributor
You can use the COMPUTE menue (Transform > Compute Variable), or you can compute the new variable using the syntax window.

With kind regards

Thank you for your quick reply! I might be missing it but I cannot locate mode in any of the function groups. I also tried looking for syntax to calculate mode but to no avail. Is there something I'm missing?