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?
Find first stage F-stats under xtivreg with factor variables (so no xtoverid)It seems to be well-documented (here: https://www.statalist.org/forums/for...port-fvvarlist or here:…
no space for concatHi, I want to connate the following variable of the dataset, the outcome is not what I want to to g…
Margins: trouble with continuous interactions under simultaneous fixed effectsSometimes I wish to control for variable X via fixed effects (say, year fixed effects) but also allo…
Cronbach's alpha for respective countriesHello, I'm trying to construct a table for how countries score on an index of mine. I can find the m…
Panel data - Creating a date variable from year and weeknumber as stringStata listers I am writing with a query relating to panel data for historical prices. I am trying t…
Subscribe to:
Post Comments (Atom)
0 Response to how to use stata discretizing a continuous variable optimally?
Post a Comment