Dear all, for our master thesis we our researching the business failure in transition economies.
Now we have a dataset for each year in which we appended the data of failed and non-failed companies. Now we want to match a failed company with a non-failed company on the following variables:
We already tried to apply the following code but got the r(2000) error:
replace pairid = cond(case ==1, _n1, _id)
drop _*[/INDENT]
Can somebody help us with this problem? We do have to emphasize again that we are real STATA dummies and that it is hard for us to understand code.
greetings Matthias
Now we have a dataset for each year in which we appended the data of failed and non-failed companies. Now we want to match a failed company with a non-failed company on the following variables:
- Publiclyquoted (listed companies only)
- Country
- NACERev2primarycode (= industry)
We already tried to apply the following code but got the r(2000) error:
gen int pairid = .[INDENT=2]psmatch2 fail Publiclyquoted Country NACERev2primarycode
replace pairid = cond(case ==1, _n1, _id)
drop _*[/INDENT]
Can somebody help us with this problem? We do have to emphasize again that we are real STATA dummies and that it is hard for us to understand code.
greetings Matthias