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
Mixed frequency dataI am currently testing the response of 3 UK stock indices to macroeconomic shocks. I have Policy sho…
tsline graph replacing time xlabel with contents of a string variable?I am using tsline to produce a graph of an environmental measurement (noise) varying with time - but…
Appending Files with Similar Name but From Different FolderI have two folders with exactly similar file names inside them. I would like for these files to be a…
Stata 16 - remove "Stata" default folderStata 16 creates a "Stata" folder in the Documents folder whenever it starts. I want to change the s…
Combine graphs through graph editorDear community! I have created two graphs and edited both of them through graph editor, now I would …
Subscribe to:
Post Comments (Atom)
0 Response to Encode command with conditions
Post a Comment