0
$\begingroup$

I three variables, zipcode, date (month_year) and name of an installer. I need to generate: 1- a new var that is equal to the number of repetitions the installer name is repeated in month_year and in zipcode (for example, how many times "Tesla" is repeated in "92105" in 2015m5). 2- another new var, that is a ratio equal to [number of repetitions the installer name is repeated in month_year and in zipcode / the total number of installers in the same zipcode and same month_year]`

Thank you,

Ali

$\endgroup$
  • $\begingroup$ This seems like a programming question, not an economics question. $\endgroup$ – Giskard May 1 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.