Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65584

Psmatch2, propensity score matching

$
0
0
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:
  • Publiclyquoted (listed companies only)
  • Country
  • NACERev2primarycode (= industry)
We created a dummy variable 'fail' for which 0 = non-failed and 1 = failed; now we want to find non-failed companies that match to our failed companies in the dataset.

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

Viewing all articles
Browse latest Browse all 65584

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>