Hello!
I am fairly new to stata, and I have spent quite some time on this website to find a solution to my problem (obviously without success)
Basically, I would like to allocate values from one variable (Description1) to a new variable (alloDescription1) based on particular values (i.e 47823 or 34637) within a particular variable (unique ID). The following two tables explain my current data situation and where I want to be.
Array
I much appreciate your help!!
Kind regards
Related Posts with Allocating particular values based on an identifier
how to obtain frequencies by groups in a two-way tab?Hi, I'm working with a dataset that has many variables. Two of them are age and gender. I want to ob…
Help MCO vs PPML (Ramsey Test)Hi, I am trying to estimate a gravity equation. I have used MCO and PPML. However, the MCO results …
Matrix subscripting based on matrix colnamesDear All, I have quick question. I have a matrix X and I want to extract, say, 2 columns based in th…
Country-Sector, Country-Year feDear all, I'm running a panel data regression, for 12 countries and 13 firms over 10 years. I have …
Lower 5th quantile of a variableHi, I am new to the forum. I am working on conducting some statistical analysis in stata. I have cou…
Subscribe to:
Post Comments (Atom)
0 Response to Allocating particular values based on an identifier
Post a Comment