Hi,
I have 842 continuous variables and I need to turn them into a catagorical variable. Each of them has its own cutoff value (I got the cutoff value by using cutpt command in a loop).
I know how to do this for one variable without a loop using the gen and replace commands and then assigning labels to the values but I don't know how to write a loop without typing cutoff value.
Can someone assist me with how to accomplish this more quickly using a loop for all 842 variables? thank you!
Related Posts with Loops for creating categorical variables using different cutoff
How can I merger two graphs in one graphhow can I merge two graphs and create one graph? I run a command graph combine 4t.gph 4v.gph, xcommo…
caculating industry level TFP growth rateHello. I have some questions. I have panel dataset, firm i, industry j, year t. I have firm's TFP wh…
Delta Method to obtain absolute and relative coefficients after MCO regressionHello everyone, I am preparing the first attempt of my thesis which is about an analysis of the deco…
include x for FI for indep. varHi I will like to include the number of FI in a tabel, when I estimate the model with fixed effects…
fitted valueshow do I calculate fitted values in stata??? …
Subscribe to:
Post Comments (Atom)
0 Response to Loops for creating categorical variables using different cutoff
Post a Comment