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
How to calculate distance in this case?Dear all, I would like to calculate a distance as follows: distance is defined as the straight-line…
How to correctly interrupt the moderating effect in a modelDear all I have three variables: New.gw is my x and log_spread is my Y and the moderator is a legal …
set string case to missing if a phrase is foundHello, I have a series of string variables (drug1 - drug25) that contain information on types of dr…
Create correlation table of AUROCs in Excel or WordDear Statalisters, I want to create a correlation table of AUROCs and their corresponding 95% CI and…
Problems with the ARIMA model for white noise testingThe variable is log return, which has been confirmed as a stationary series by the DF test, I choose…
Subscribe to:
Post Comments (Atom)
0 Response to Creating number of obs and summing for new variable value
Post a Comment