I've been trying to aggregate my current data set into a panel format. Currently the data is a cross section of people and I'd like to aggregate by state. For example, there are multiple observations for Maine in 2013 and I'd like to condense the data so that is its own row. Some variables that are individual specific would be dropped but the state variables toward the end would be kept. Any help would be much appreciated!
Note that when I try running ~dataex~ I receive an error message as I have too many variables. Is there a way I can get around that to share my data?
Related Posts with Cross Section Data --> Panel
Unbiased 95% CI of an x variable in y units after gsem ln(y)Charles Huber discusses the interpretation of models with log-transformed outcomes in Stata News 34-…
Training sample for lasso and them making out of sample predictionsDear All I have created a loop to generate forecasts using a lasso regressions that (I hope) are co…
Tip with recoding 40+ values in a variableHi! I am new to STATA and I am trying to recode a variable with 40 values. For values 1 to 38, i wan…
Estimating the Effect of a given variable on mortality ratesHi everyone, Below is an example from my dataset. datediag dead dateexit id perdiag agegrp 4429 1 …
Which model to chooseHello Im doing my research aiming to study the effects of different demographics on the Self employm…
Subscribe to:
Post Comments (Atom)
0 Response to Cross Section Data --> Panel
Post a Comment