Hello,
I have a dataset of firms investments in different states: e.g. Firm A invests $1million in Nevada, which is identified by an unique number (a firm may have multiple investments in different states)
I need to create 0million observations for each neighboring state for each investment.
I have: a unique identifier for the investment, a list of neighboring states (in Excel) for each state
How do I expand my dataset such that for each investment I have the original observation plus n additional rows (one for each of the neighboring states) with the same investment id but with $0 for the added observations and the name of each neighboring state.
I am not sure how to organize my neighboring state data for Stata and how to go about creating such a database.
Any tips will be greatly appreciated!
Related Posts with Create observations for neighboring states
Reshaping data long to wide(NSS, 64th round)Hi, The data I am detailing with pertains to the household and individual-level data from the Natio…
Calculating 95% CI for a chi square analysis?If I'm looking for how a category "treatment type" affects category "diagnosis" in a 2x2 chi square …
putexcel with dates as row namesDear All, I'm trying to compute some statistics of my sample dataset. In particular I'm interested …
Using mysuest to compare coefficients from different imputationsHello everyone, I require some assistance with regard to using mysuest for the sake of comparing co…
how to export stata result to excel using table and tabstat command Sex usual_residence registered_place income_1 income_2 Male New York Washington Dc 2000 2112 …
Subscribe to:
Post Comments (Atom)
0 Response to Create observations for neighboring states
Post a Comment