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
Append ignoring different variable namesI have a big dataset that I need to append: Dataset1 and Dataset2. I need to append Dataset2 from Da…
Merging DatasetsDear all, I am trying to merge two datasets that contain sectoral information on value added, numbe…
Converting Composite Categorical Variables to Binary VariablesHi all, I'm new to Stata and am running into trouble with setting up a dataset for use. The issue …
logistic risk prediction modelHi, I have developed a risk prediction model for Outcome (binary) based on 4 binary variables. I de…
How can I use the command captureHey, I want to use command capture to gen the variable years for all my databases that dont have it …
Subscribe to:
Post Comments (Atom)
0 Response to Create same variable across groups in panel data
Post a Comment