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
Questions about Logit regression applicable in my research design.Hello, everyone. I am not new to use Statalist, but this is the first time I am not sure I find an …
Support: most efficient way to enter dataHi everyone, I am a total newbie to Stata, so perhaps some of you can help me with this issue: For…
Pooled OLS and Random EffectsHello everyone, Was just concerned as I have a set of panel data obvservations, and when running reg…
conflicting results with command ivprobit and marginsHi all! When I ran ivprobit, I got positive and significant coefficient for my endogenous independen…
Easier way to get casewise statistics using tabstat?Hi, I need a command/code that help me to get casewise descriptive statistics using "tabstat" witho…
Subscribe to:
Post Comments (Atom)
0 Response to Encode command with conditions
Post a Comment