Hello,
I have data on loans, one loan per observation, each with a zipcode and amount attached as variables .
1.I looking to get the number of observations/loans per zipcode (string) or zipnumber (same value but long).
So I'm looking to have 1 distinct zipcode as an observation and a number of loans for that zip code as a new variable value.
2. I looking to sum the "amount" variable for each zipcode into a new variable.
So I'm looking to get distinct zipcodes for each observation with an amount summed from the "amount" variable.
Thanks,
Tom
Related Posts with Creating number of obs and summing for new variable value
Obtain values on a rolling basisHi everyone, I have a question regarding the following. The values after 0.000254 (UPAVG) should be…
Help Interpreting Continuous Dummy Interaction Term in Fixed Effects Panel dataDear all, I have a question on how to interpret an interaction between a continuous and dummy varia…
Difference in Difference in Matching by incorporating geographical fixed effectsDear All, I would like to ask about matching. If I have a panel data and I want to run Difference i…
How to align variables in longitudinal dataHi again Statalist, I have a slightly complicated question so I have this all makes sense. I have …
Propensity score matching commandHello everyone, i want to use propensity score matching for impact evaluation. I used these ado comm…
Subscribe to:
Post Comments (Atom)
0 Response to Creating number of obs and summing for new variable value
Post a Comment