Hi, I have a continuous variable (median household income) from my census data that I am trying to convert into an ordinal variable (i.e. I'm trying to make median household income groups). I attempted to split up the variable (FSA_medincome_household) into 12 groups based on an incremental income of $10,000, using this code:
egen FSA_medincome_household_743ord = cut(FSA_medincome_household_743), at(10000(10000)120000) label
The problem here is that all my variables get coded as missing. I am not sure if it has something to do with the large numbers for the variable or because it's represented as a long storage type.
Can anyone help me figure out what I am doing wrong?
Thanks in advance!
Related Posts with Converting a Continuous Variable to an Ordinal Variable (For Large Numbers)
Recoding into an existing variableHello, I am trying to add text responses to an existing variable. I have a variable Q33_20_TEXT th…
3 Level Hierarchical Models in STATA; Null model failed to convergeAbout the Dataset I am working with DHS (Demographic and Health Survey Data) data. DHS uses a two-s…
Confusion about FE and DIDHello everyone, this is my first post here so please excuse me if the formatting is not great yet. I…
deal with errors in panel dataHi! I am doing a research on the impact of dividend policy on the investors' rate of return. Now I h…
plotting interaction after XTSCC commandHow do I plot interactions after the XTSCC command? …
Subscribe to:
Post Comments (Atom)
0 Response to Converting a Continuous Variable to an Ordinal Variable (For Large Numbers)
Post a Comment