Good morning all,
Several days that I am stuck on my research paper. I carry out a model on grant loans, the explained variable being the probability of being in default.
In particular, I have data on the allocation of loan officers in the different districts: ASSIGNMENT: DS01, DS02, ... DS32.
I would like to show that depending on where the loan officer is assigned, it has an impact on the probability of customer default.
For example that the agents in the DS23 register many more defaults than the others.
First, I created this variable:
gen default_assign = 0
replace default_assign = 1 if ASSIGNMENT = "DS23"
replace ...
However, I found that when I relaunched the model the districts with the most defaulting customers changed. So I wanted to create an assign_default variable depending on the default frequency in each district like:
default_assign = 0
replace default_assign = 1 if frequency ("DS23")> 3
But I don't know how I can do this on STATA.
Pleaaaase HELP!
Several days that I am stuck on my research paper. I carry out a model on grant loans, the explained variable being the probability of being in default.
In particular, I have data on the allocation of loan officers in the different districts: ASSIGNMENT: DS01, DS02, ... DS32.
I would like to show that depending on where the loan officer is assigned, it has an impact on the probability of customer default.
For example that the agents in the DS23 register many more defaults than the others.
First, I created this variable:
gen default_assign = 0
replace default_assign = 1 if ASSIGNMENT = "DS23"
replace ...
However, I found that when I relaunched the model the districts with the most defaulting customers changed. So I wanted to create an assign_default variable depending on the default frequency in each district like:
default_assign = 0
replace default_assign = 1 if frequency ("DS23")> 3
But I don't know how I can do this on STATA.
Pleaaaase HELP!
Comment