Ordinal variables with many categories
Posted on
rabil
Joined: 01/14/2010
Forums
If an ordinal variable has 20 categories, is it practical to try to handle this with thresholds? Or would it be better to treat as continuous?
If you have enough data
Log in or register to post comments
In reply to If you have enough data by neale
I am quite new for OpenMX. I
Log in or register to post comments
In reply to I am quite new for OpenMX. I by lingsuer87
See response to other thread
Log in or register to post comments
In reply to If you have enough data by neale
lots of levels, but values below a cutoff set to 0
> table(mxFactor(ocd$OCI_OBSESSION, levels = c(0:20)))
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
2813 746 462 295 197 107 84 49 48 37 21 13 14 4 9 7 7 1 2 0 2
Then one needs to stay ordinal to avoid the model treating everyone with score "0" as having risk ~ scores of 1.
Given that analysis is prohibitive (can be hundreds of hours even running multi-core) for a large multivariate model where variables have this many levels (and some empty categories), is there a logical basis for cutting the data into fewer quantiles? How would one justify a given choice (say 5, vs, 7, vs 10 or 12 levels?) Use a criterion like no group smaller than 50 or so?
table(cut2(ocd$OCI_OBSESSION, m=75))
0 1 2 3 4 5 6 [ 7, 9) [ 9,11) [11,29]
2813 746 462 295 197 107 84 97 58 69
Log in or register to post comments
In reply to lots of levels, but values below a cutoff set to 0 by tbates
Maybe not so large
Log in or register to post comments