Hi, I have a question about the "encode" command.
my data is as below. I need to use the "cluster" in my pooled logit model command.
but as you can see when I pooled the data together, some cluster numbers are duplicated even they represent different things in different countries.
for example, "1" in Australia, EU, and the USA is the same cluster number, but in fact, it is representing different clusters respectively in each country. however, Australia-1's and Australis-2's "1" is representing the same cluster.
how should I reencode them and present the result as a "new cluster".
and my data sample is somehow very large. after I reencoded them, how should I check whether I did it right or not?
Many thanks in advance.
Array
Related Posts with Encode command with conditions
sfpanelI have a quick query regarding the stochastic frontier models. I am running a stochastic frontier mo…
Challenge in importing csv fileHi Stata Users, I am using Stata 16 to import the attached file using the command below [ Code: i…
Probit model with sample selectionDear Stata users, I want to estimate a model in which the dependent variable is the labor force par…
Random implementation test/ falsification check for Diff-in-Diff with staggered adoptionDear all, I employ difference-in-differences estimation to analyze the effect of a legislative poli…
Validity of fixed effects modelHello, I am investigating the effects of climate finance on climate vulnerability scores in Sub-Saha…
Subscribe to:
Post Comments (Atom)
0 Response to Encode command with conditions
Post a Comment