Ich habe Daten wie folgt aus:SPSS - Variablen zu Fällen
Person Region Grapes Apples Bananas
Bob IV 4 2 1
Jane II 0 1 2
ich zu restrukturieren müssen (VARs Fälle?) Einen Datensatz für jede Anzahl der Früchte zurück die Person hatte, wie folgt aus:
Person Region Fruit
Bob IV Grapes
Bob IV Grapes
Bob IV Grapes
Bob IV Grapes
Bob IV Apples
Bob IV Apples
Bob IV Bananas
Jane II Apples
Jane II Bananas
Jane II Bananas
Der folgende Code wird zurückkommen, die einen Schritt näher ist aber nicht ganz da:
Person Region Fruit Count
Bob IV Grapes 4
Bob IV Apples 2
Bob IV Bananas 1
Jane II Apples 1
Jane II Bananas 2
VARSTOCASES /MAKE Count FROM Grapes Apples Bananas /INDEX=Fruit(Count) /KEEP=Person Region /NULL=KEEP.
Irgendwelche Vorschläge?