I am trying to modelling a leasing portfolio.
Now I have to generate a sample from the original population of the assets that will be repossessed.
Ex.
We have 10 cars. The percentage of the cars that will be repossessed is 20%.
We have 10 boats. The percentage of the boats that will be repossessed is 70%.
So I need to obtain a variable (that has value 0 if not repossess and 1 if will be repossess) that follows those rules.
Which formula should I use?
What I did (not very sophisticated) was ordering them by asset type and then, for the 20% prob I gave a value of 1 every 5 rows.
Thank you so much in advance.
Rocco
Now I have to generate a sample from the original population of the assets that will be repossessed.
Ex.
We have 10 cars. The percentage of the cars that will be repossessed is 20%.
We have 10 boats. The percentage of the boats that will be repossessed is 70%.
So I need to obtain a variable (that has value 0 if not repossess and 1 if will be repossess) that follows those rules.
Which formula should I use?
What I did (not very sophisticated) was ordering them by asset type and then, for the 20% prob I gave a value of 1 every 5 rows.
Thank you so much in advance.
Rocco