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)
Adding symbol prefix to formatted table cellHi all, I would like to prefix specific formatted table cells with symbols e.g."<" 0.001 Becaus…
Import 'dd.mm.yy' format date to StataHi, I would like to import the following dates "Date" to Stata date format. Anyone has delt with th…
GMM Continuously Updating Estimator - convergence not achievedDear Statalists, I am using an IV framework for a collection of "h" regressions (Local projection) …
Export DTA file to sas7bdat file?Hello Stata users I'm trying to export a Stata DTA file to sas7bdat file? I have tried the export …
Loop over different dependent and independent variables[I am using STATA 15.0] I am trying to run ANCOVA regression and store the results using eststo and …
Subscribe to:
Post Comments (Atom)
0 Response to Converting a Continuous Variable to an Ordinal Variable (For Large Numbers)
Post a Comment