Hi all,
This is probably a very basis question, but I'm still quite new to Stata.
I am trying to replicate a paper which investigates differences between fraud firms and their non-fraud competitors. I have constructed a sample which consists of fraud firms (denoted with dummy variable 'fraud' taking the value of 1 in case of fraud) and matched those with a non-fraud competitor. For both firms I computed a bunch of variables and I now would like to provide some descriptive statistics and compare their means.
So I have data which looks something like this:
Now I want to get a table with descriptive statistics which gives me the variables (Diff and Leverage is this case) and their mean, median and St. deviation of both the fraud (indicated with 1)- and non fraud firms(0) and the differences between the means of the fraud and non-fraud sample.
I'm not quite sure if I want a 'matched pair comparison', where the (non)fraud firms are compared within the pair or just the means for all fraud firms and all non-fraud firms. I don't know if it is possible to do it both these ways? Can someone tell me what code to use, for both type of tests?
Kind regards,
Thomas
This is probably a very basis question, but I'm still quite new to Stata.
I am trying to replicate a paper which investigates differences between fraud firms and their non-fraud competitors. I have constructed a sample which consists of fraud firms (denoted with dummy variable 'fraud' taking the value of 1 in case of fraud) and matched those with a non-fraud competitor. For both firms I computed a bunch of variables and I now would like to provide some descriptive statistics and compare their means.
So I have data which looks something like this:
Company ID | Pair | Fraud | Diff | Leverage |
1 | 1 | 1 | .5 | 2.5 |
2 | 1 | 0 | .8 | 1.2 |
3 | 2 | 1 | .3 | 1.8 |
4 | 2 | 0 | -.5 | 2.9 |
I'm not quite sure if I want a 'matched pair comparison', where the (non)fraud firms are compared within the pair or just the means for all fraud firms and all non-fraud firms. I don't know if it is possible to do it both these ways? Can someone tell me what code to use, for both type of tests?
Kind regards,
Thomas
Comment