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?
Problems with the ARIMA model for white noise testingThe variable is log return, which has been confirmed as a stationary series by the DF test, I choose…
Text Similarity Using lsemanticaHi, I am new to Stata text similarity. I am trying to use lsemantica command to identify the similar…
Create correlation table of AUROCs in Excel or WordDear Statalisters, I want to create a correlation table of AUROCs and their corresponding 95% CI and…
set string case to missing if a phrase is foundHello, I have a series of string variables (drug1 - drug25) that contain information on types of dr…
How does Stata know which variable is the main variable?I'm starting to get a little confused about how R knows which variable is the main variable and whic…
Subscribe to:
Post Comments (Atom)
0 Response to how to use stata discretizing a continuous variable optimally?
Post a Comment