Hello Statalists,
Hope you can advise on this.
Lets say I have data N=20 and T=100, and I want to import/paste one variable (let's say from excel) to be common across the 20 cross sections.
I can past it for the first group (id=1) which creates missing values for the other 19, but what is the efficient way to do this for the rest of the groups? Ideally pasting in 20 times is time consuming.
Thank you.
Related Posts with Create same variable across groups in panel data
Xtabond2 for system GMM. Please help me for codingDear all, I am working with the xtabond2 command in Stata to solve the endogeneity problem of my es…
Expanding obs depending on several variablesDear Statalist, I have a dataset of several firms patenting. However, there are patents with more th…
How to make a graph that shows reliable and clinically significant change in particular variable?Dear Statalisters, I appreciate if anyone can help with how to make a graph showing reliable and cl…
Not show "Standard errors in parenthesis *p <0.10, **p<0.05, ***p<0.001" below table, while keeping the significance stars with esttabHey everyone, As in the title, I'd like to save my regression results in a table, however, I can't …
Does gen,sum() and egen,total() work differently when combined with bysort?Hi, Please consider the following data: Code: * Example generated by -dataex-. For more info, type…
Subscribe to:
Post Comments (Atom)
0 Response to Create same variable across groups in panel data
Post a Comment