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?
How to overcome the maximum (300) limits of estimation results in storageI have a dataset of nearly 1000 individuals, each individuals have 1200-1300 obs. The task is run re…
How to find observations who meet two criteriea?Hi I want to browse or tabulate those patients who fullfill two criteriea from an variable in my da…
Multinomial Probit model with continuous endogenous regressorsHi there May I ask if there are stata commands for running multinomial probit model with continuous…
Cointegration for Probit modelGood evening, I have a probit model where: probit(y) = intercept + beta1*var1 + beta2*var2 + beta3…
Store Regression Coefficients after LoopDear all, I have the following data format where type is the type of the car (categorical). At each…
Subscribe to:
Post Comments (Atom)
0 Response to how to use stata discretizing a continuous variable optimally?
Post a Comment