Dear list members,
We are facing a complicated SPSS problem and are looking for a clean
solution.
In a current study we are dealing with itineraries people run with a certain
frequency (i.e. going to work and back every working day).
Itineraries consist of a maximum of 12 steps (Step 1: 10km on road x, Step
2: 20km on road y,...) and are each described by the following variables:
A) Is the step done in the investigated area (yes/no).
B) To which zone of the investigated area does it belong (1-16)
C) Type of road being used (1-3; like i.e. Highway, Country-road )
D) What road is being used? (1-50; i.e. A26, EN778,...)
E) Distance covered on that road (numeric)
We need to
1) Identify the "Most important step" defined as largest distance with
highest frequency (frequency is equal for all 12 steps of an itinerary)
2) Return the values of zone (Var B) and type (Var C) of the selected
step to 2 output variables (O1 and O2).
We guess this should be easy with the aid of a macro but unfortunately I
don't know much about them.
Thanks for your advice!
Víctor Tarragó
[hidden email]