Dear Madam/Sir,
I tried to make the nice correlation table using spearman correlation. Due to the help of this forum, I ran the following STATA code, it seems that correlations are generated, but it is not nicely stored in a word file. Any help will be highly appreciated.
asdoc spearman ln_audit sdd1 sstmat lev cspec ln_nonaudit icw restatement gc auchange merger financing yearend ln_at mb big4 roa loss fsalepro SQ_SEGS ar_in special_item ln_tenure abaccrual if e(sample), save(r1.doc) replace star(all) dec3
(obs=47539)
| ln_audit sdd1 sstmat lev cspec ln_non~t icw restat~t gc auchange merger financ~g yearend ln_at mb big4 roa
-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------
ln_audit | 1.0000
sdd1 | 0.0941 1.0000
sstmat | 0.0812 0.5377 1.0000
lev | 0.4370 0.2061 0.1629 1.0000
cspec | 0.2673 0.0269 0.0182 0.1144 1.0000
ln_nonaudit | 0.5835 0.1398 0.1120 0.3161 0.2128 1.0000
icw | 0.0021 0.0013 0.0130 -0.0127 -0.0221 -0.1019 1.0000
restatement | 0.0305 0.0338 0.0320 0.0307 0.0228 0.0548 0.1946 1.0000
gc | -0.2139 0.0244 0.0439 -0.0218 -0.0658 -0.1773 0.1181 -0.0011 1.0000
auchange | -0.1213 0.0084 0.0231 -0.0323 -0.0457 -0.1065 0.0917 0.0255 0.0798 1.0000
merger | 0.2993 0.0321 0.0265 0.1260 0.0642 0.1670 0.0028 -0.0015 -0.0593 -0.0396 1.0000
financing | 0.2357 0.2016 0.2038 0.1811 0.0847 0.2302 -0.0415 0.0340 -0.0623 -0.0306 -0.3925 1.0000
yearend | 0.0788 0.0364 0.0317 0.0684 0.0380 0.0272 0.0087 -0.0482 0.0089 -0.0184 0.0355 0.0688 1.0000
ln_at | 0.8575 0.1311 0.1455 0.4560 0.2451 0.6488 -0.1116 0.0350 -0.2681 -0.1152 0.2446 0.3255 0.0710 1.0000
mb | 0.0903 -0.0749 -0.0973 0.1567 0.0525 0.0577 0.0084 -0.0300 0.0584 -0.0201 0.0409 0.0705 0.0659 0.0286 1.0000
big4 | 0.5400 0.0095 -0.0228 0.2143 0.2526 0.4536 -0.1306 0.0341 -0.1931 -0.1202 0.1019 0.1919 0.0484 0.5476 0.0611 1.0000
roa | 0.2266 -0.0364 -0.0378 0.0144 0.0389 0.1926 -0.1163 -0.0278 -0.2782 -0.0576 0.0343 0.0466 -0.0899 0.3270 0.1521 0.1456 1.0000
loss | -0.2669 -0.0333 -0.0414 -0.1065 -0.0533 -0.2272 0.1175 0.0114 0.2587 0.0567 -0.0624 -0.0755 0.0591 -0.3802 -0.0504 -0.1719 -0.8308
fsalepro | 0.3930 -0.0302 -0.0398 0.0373 0.0870 0.2787 0.0082 0.0133 -0.1022 -0.0329 0.1928 -0.0220 -0.0302 0.2713 0.0483 0.1699 0.1378
SQ_SEGS | 0.2861 0.1346 0.1313 0.1952 0.0584 0.2418 -0.0255 0.0242 -0.0987 -0.0198 0.0941 0.0830 0.0116 0.3096 -0.0931 0.1221 0.1340
ar_in | -0.0472 0.0602 0.1159 0.0347 -0.0582 -0.0137 0.0096 0.0029 -0.0594 0.0222 -0.0401 -0.0997 -0.2046 -0.1218 -0.1367 -0.0980 0.1934
special_item | 0.3488 0.0792 0.0611 0.1953 0.0910 0.2491 0.0264 0.0408 -0.0239 -0.0193 0.3100 -0.0067 0.0285 0.2923 -0.0437 0.1821 -0.0729
ln_tenure | 0.3167 0.0336 0.0481 0.1436 0.1321 0.2649 -0.1070 -0.0093 -0.0993 -0.2109 0.0965 0.0537 -0.0509 0.3469 0.0043 0.2926 0.1940
abaccrual | -0.0978 0.0075 0.0228 0.0090 -0.0365 -0.0918 0.0345 0.0127 0.0993 0.0209 -0.0641 0.0096 -0.0034 -0.1120 -0.0885 -0.0683 -0.2095
| loss fsalepro SQ_SEGS ar_in specia~m ln_ten~e abaccr~l
-------------+---------------------------------------------------------------
loss | 1.0000
fsalepro | -0.1056 1.0000
SQ_SEGS | -0.1817 0.1121 1.0000
ar_in | -0.1590 0.1703 0.1001 1.0000
special_item | 0.0448 0.1905 0.1222 -0.0281 1.0000
ln_tenure | -0.2019 0.1512 0.1621 0.0456 0.0896 1.0000
abaccrual | 0.1482 -0.1230 -0.0329 -0.0170 -0.0306 -0.0627 1.0000
(note: file r1.doc not found)
asdoccor(): 3301 subscript invalid
<istmt>: - function returned error
r(3301);
Thank you!
Joon
I tried to make the nice correlation table using spearman correlation. Due to the help of this forum, I ran the following STATA code, it seems that correlations are generated, but it is not nicely stored in a word file. Any help will be highly appreciated.
asdoc spearman ln_audit sdd1 sstmat lev cspec ln_nonaudit icw restatement gc auchange merger financing yearend ln_at mb big4 roa loss fsalepro SQ_SEGS ar_in special_item ln_tenure abaccrual if e(sample), save(r1.doc) replace star(all) dec3
(obs=47539)
| ln_audit sdd1 sstmat lev cspec ln_non~t icw restat~t gc auchange merger financ~g yearend ln_at mb big4 roa
-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------
ln_audit | 1.0000
sdd1 | 0.0941 1.0000
sstmat | 0.0812 0.5377 1.0000
lev | 0.4370 0.2061 0.1629 1.0000
cspec | 0.2673 0.0269 0.0182 0.1144 1.0000
ln_nonaudit | 0.5835 0.1398 0.1120 0.3161 0.2128 1.0000
icw | 0.0021 0.0013 0.0130 -0.0127 -0.0221 -0.1019 1.0000
restatement | 0.0305 0.0338 0.0320 0.0307 0.0228 0.0548 0.1946 1.0000
gc | -0.2139 0.0244 0.0439 -0.0218 -0.0658 -0.1773 0.1181 -0.0011 1.0000
auchange | -0.1213 0.0084 0.0231 -0.0323 -0.0457 -0.1065 0.0917 0.0255 0.0798 1.0000
merger | 0.2993 0.0321 0.0265 0.1260 0.0642 0.1670 0.0028 -0.0015 -0.0593 -0.0396 1.0000
financing | 0.2357 0.2016 0.2038 0.1811 0.0847 0.2302 -0.0415 0.0340 -0.0623 -0.0306 -0.3925 1.0000
yearend | 0.0788 0.0364 0.0317 0.0684 0.0380 0.0272 0.0087 -0.0482 0.0089 -0.0184 0.0355 0.0688 1.0000
ln_at | 0.8575 0.1311 0.1455 0.4560 0.2451 0.6488 -0.1116 0.0350 -0.2681 -0.1152 0.2446 0.3255 0.0710 1.0000
mb | 0.0903 -0.0749 -0.0973 0.1567 0.0525 0.0577 0.0084 -0.0300 0.0584 -0.0201 0.0409 0.0705 0.0659 0.0286 1.0000
big4 | 0.5400 0.0095 -0.0228 0.2143 0.2526 0.4536 -0.1306 0.0341 -0.1931 -0.1202 0.1019 0.1919 0.0484 0.5476 0.0611 1.0000
roa | 0.2266 -0.0364 -0.0378 0.0144 0.0389 0.1926 -0.1163 -0.0278 -0.2782 -0.0576 0.0343 0.0466 -0.0899 0.3270 0.1521 0.1456 1.0000
loss | -0.2669 -0.0333 -0.0414 -0.1065 -0.0533 -0.2272 0.1175 0.0114 0.2587 0.0567 -0.0624 -0.0755 0.0591 -0.3802 -0.0504 -0.1719 -0.8308
fsalepro | 0.3930 -0.0302 -0.0398 0.0373 0.0870 0.2787 0.0082 0.0133 -0.1022 -0.0329 0.1928 -0.0220 -0.0302 0.2713 0.0483 0.1699 0.1378
SQ_SEGS | 0.2861 0.1346 0.1313 0.1952 0.0584 0.2418 -0.0255 0.0242 -0.0987 -0.0198 0.0941 0.0830 0.0116 0.3096 -0.0931 0.1221 0.1340
ar_in | -0.0472 0.0602 0.1159 0.0347 -0.0582 -0.0137 0.0096 0.0029 -0.0594 0.0222 -0.0401 -0.0997 -0.2046 -0.1218 -0.1367 -0.0980 0.1934
special_item | 0.3488 0.0792 0.0611 0.1953 0.0910 0.2491 0.0264 0.0408 -0.0239 -0.0193 0.3100 -0.0067 0.0285 0.2923 -0.0437 0.1821 -0.0729
ln_tenure | 0.3167 0.0336 0.0481 0.1436 0.1321 0.2649 -0.1070 -0.0093 -0.0993 -0.2109 0.0965 0.0537 -0.0509 0.3469 0.0043 0.2926 0.1940
abaccrual | -0.0978 0.0075 0.0228 0.0090 -0.0365 -0.0918 0.0345 0.0127 0.0993 0.0209 -0.0641 0.0096 -0.0034 -0.1120 -0.0885 -0.0683 -0.2095
| loss fsalepro SQ_SEGS ar_in specia~m ln_ten~e abaccr~l
-------------+---------------------------------------------------------------
loss | 1.0000
fsalepro | -0.1056 1.0000
SQ_SEGS | -0.1817 0.1121 1.0000
ar_in | -0.1590 0.1703 0.1001 1.0000
special_item | 0.0448 0.1905 0.1222 -0.0281 1.0000
ln_tenure | -0.2019 0.1512 0.1621 0.0456 0.0896 1.0000
abaccrual | 0.1482 -0.1230 -0.0329 -0.0170 -0.0306 -0.0627 1.0000
(note: file r1.doc not found)
asdoccor(): 3301 subscript invalid
<istmt>: - function returned error
r(3301);
Thank you!
Joon
Comment