help decision tree CRT analysis

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

help decision tree CRT analysis

Kornbrot, Diana
Hi SPSSers

Is there any way to conduct classify > decision tree analysis with CRT, SPLIT by a categorical variable.
My category variable has 51 levels, with non consecutive numbers & I do not want to do it by selecting variable and running analysis 51 times
why this procedure does not accept splits a mystery to me!
best
Diana
_______________
Professor Diana Kornbrot
University of Hertfordshire
College Lane, Hatfield, Hertfordshire AL10 9AB, UK
+44 (0) 208 444 2081
+44 (0) 7403 18 16 12
+44 (0) 170 728 4626 
skype:  kornbrotme_______________________________





Reply | Threaded
Open this post in threaded view
|

Re: help decision tree CRT analysis

Jon K Peck
All you need to do is to set your split variable as the first independent variable and check "Force first variable".  That amounts to splitting.

If you would prefer to run the procedure, in effect, separately on 51 partitions, that can be done with a short Python program.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        "Kornbrot, Diana" <[hidden email]>
To:        [hidden email],
Date:        06/14/2014 09:34 AM
Subject:        [SPSSX-L] help decision tree CRT analysis
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hi SPSSers

Is there any way to conduct classify > decision tree analysis with CRT, SPLIT by a categorical variable.
My category variable has 51 levels, with non consecutive numbers & I do not want to do it by selecting variable and running analysis 51 times
why this procedure does not accept splits a mystery to me!
best
Diana
_______________
Professor Diana Kornbrot
University of Hertfordshire
College Lane, Hatfield, Hertfordshire AL10 9AB, UK
+44 (0) 208 444 2081
+44 (0) 7403 18 16 12
+44 (0) 170 728 4626
d.e.kornbrot@...
http://dianakornbrot.wordpress.com/
http://go.herts.ac.uk/Diana_Kornbrot
skype:  kornbrotme_______________________________