Hi guys,
I just meet an interesting problem. My boss asked me to recode a continuous variable, for example, age.
The final goal is to cut the age into some intervals which maximizing the difference of wage among the intervals.
I just wonder that are there any user-written command which can automatically do that?
I found some information on the web, there are some algorithms called "chi2 algorithm" which can compare the distribution of adjacent intervals to combine some trivial intervals.
Any similar command in stata?
Related Posts with how to use stata discretizing a continuous variable optimally?
change label in y-axis/x-axis?Dear All, I have the following code (please ssc install coefplot) and graph: Code: webuse grunfeld,…
Adding quantity of particular product from all importers and one particular exporterDear all, I have a dataset with information about products (numeric), their quantity, the importer …
Finding values that are two standard deviations above the meanI need to find values of a variable that are two standard devotions above the mean. I want to create…
Latent profile analysis with continuous indicators and local independenceHello Stata users! I am doing a Latent Profile Analysis with continuous indicators (gsem, lclass op…
Regression discontinuity of binary outcomes with rdplot/rdrobust/rdbwselect and/or rd*Hi I’m using Stata/SE 15.1 and am able to run all example do files included in the rdplot/rdrobust/r…
Subscribe to:
Post Comments (Atom)
0 Response to how to use stata discretizing a continuous variable optimally?
Post a Comment