---------------------------------------------------------------------------------------- log: D:\Anands Documents\Working Papers\Devanbu\Data\commit\commit_python.txt log type: text opened on: 6 Mar 2007, 13:02:20 . . *reads in event history data from event.dta . use event_python . sort id year month . save run1, replace (note: file run1.dta not found) file run1.dta saved . clear . . *reads in patch data from patch.dta . use patch_python . sort id year month . . *merges event history and patch data . merge id year month using run1 . . drop _merge . sort id year month . save run2, replace (note: file run2.dta not found) file run2.dta saved . . *reads in node attribute data from node.dta . use node_python . sort id year month . . *merges the two datasets . merge id year month using run2 . drop _merge . drop if commit==. (3405 observations deleted) . . *create event history variables, time is specified on an annual scale . gen ts=calendar-start_date . gen tf=ts+0.08333333 . stset tf, id(id) failure (commit=1) id: id failure event: commit == 1 obs. time interval: (tf[_n-1], tf] exit on or before: failure ------------------------------------------------------------------------------ 45216 total obs. 0 exclusions ------------------------------------------------------------------------------ 45216 obs. remaining, representing 1320 subjects 62 failures in single failure-per-subject data 3768.001 total analysis time at risk, at risk from t = 0 earliest observed entry t = 0 last observed exit t = 7.333333 . *generate additional variables . gen dev_pct=(devs_cum/people_cum)*100 . gen time_trend=calendar-1995 . gen patch_any=0 . replace patch_any=1 if patches_submitted_cum>0 (1979 real changes made) . gen patch_current=0 . replace patch_current=1 if patches_submitted>0 (124 real changes made) . gen success_pct=(patches_committed_cum/patches_submitted_cum)*100 (43237 missing values generated) . replace success_pct=0 if success_pct==. (43237 real changes made) . . *save data file to be used in further analysis . save commit_python, replace file commit_python.dta saved . . *compute descriptive statistics . summ Variable | Obs Mean Std. Dev. Min Max -------------+-------------------------------------------------------- id | 45216 3321.581 387.0222 2664 3993 year | 45216 2004.042 1.560097 1999 2006 month | 45216 6.344723 3.38884 1 12 calendar | 45216 2004.487 1.518072 1999.25 2006.5 between_cum | 45216 149.2713 1259.397 0 52390.8 -------------+-------------------------------------------------------- indegree_cum | 45216 4.427504 9.015833 0 176 outdegree_~m | 45216 4.029304 11.28506 0 244 norm_betwe~m | 45216 .0005251 .0041792 0 .276114 norm_indeg~m | 45216 .0098779 .0319625 0 .703704 norm_outde~m | 45216 .0092189 .0356814 0 .88 -------------+-------------------------------------------------------- between_mo~y | 45216 4.063655 42.38494 0 2560.94 indegree_m~y | 45216 .2829087 1.382239 0 34 outdegree_~y | 45216 .2722709 1.45404 0 40 norm_betwe~y | 45216 .0006464 .0071584 0 .373294 norm_indeg~y | 45216 .0039725 .0237865 0 1 -------------+-------------------------------------------------------- norm_outde~y | 45216 .0038401 .0242359 0 .736842 sent_monthly | 45216 .5638933 3.477144 0 188 sent_cum | 45216 13.87991 54.44937 1 1648 people_mon~y | 45216 101.7055 29.99037 2 160 people_cum | 45216 871.2569 330.2798 18 1329 -------------+-------------------------------------------------------- devs_cum | 45216 58.69106 14.21871 0 79 patches_su~d | 45216 .0071877 .312257 0 46 patches_su~m | 45216 .1433121 1.500926 0 66 patches_co~d | 45216 .0019241 .19633 0 32 patches_co~m | 45216 .0506237 1.084805 0 32 -------------+-------------------------------------------------------- patch_mess~s | 45216 .0034501 .0742781 0 4 patch_mess~m | 45216 .0754821 .5415273 0 20 start_date | 45216 2002.537 1.597127 1999.25 2006.5 commit | 45216 .0013712 .0370047 0 1 ts | 45216 1.949872 1.474413 0 7.25 -------------+-------------------------------------------------------- tf | 45216 2.033205 1.474413 .0833333 7.333333 _st | 45216 1 0 1 1 _d | 45216 .0013712 .0370047 0 1 _t | 45216 2.033205 1.474413 .0833333 7.333333 _t0 | 45216 1.949872 1.474413 0 7.249959 -------------+-------------------------------------------------------- dev_pct | 45216 7.415804 2.283073 0 15.82734 time_trend | 45216 9.486949 1.518072 4.25 11.5 patch_any | 45216 .0437677 .2045801 0 1 patch_curr~t | 45216 .0027424 .0522966 0 1 success_pct | 45216 .6238171 6.982764 0 100 . correlate (obs=45216) | id year month calendar betwee~m indegr~m outdeg~m norm_b~m -------------+------------------------------------------------------------------------ id | 1.0000 year | 0.0612 1.0000 month | -0.0010 -0.2373 1.0000 calendar | 0.0627 0.9835 -0.0579 1.0000 between_cum | -0.0643 0.0544 -0.0026 0.0554 1.0000 indegree_cum | -0.1609 0.0097 -0.0018 0.0097 0.6695 1.0000 outdegree_~m | -0.1226 0.0068 -0.0016 0.0067 0.8013 0.9136 1.0000 norm_betwe~m | -0.0650 -0.1623 0.0004 -0.1668 0.3873 0.3815 0.4347 1.0000 norm_indeg~m | -0.1314 -0.3165 0.0117 -0.3231 0.2163 0.5034 0.4518 0.6960 norm_outde~m | -0.1169 -0.2789 0.0107 -0.2846 0.2936 0.5034 0.5302 0.7520 between_mo~y | -0.0501 0.0013 -0.0043 0.0005 0.4867 0.4407 0.4798 0.2659 indegree_m~y | -0.0932 -0.1232 -0.0154 -0.1295 0.3427 0.4865 0.4550 0.3925 outdegree_~y | -0.0859 -0.1120 -0.0134 -0.1176 0.4392 0.5174 0.5622 0.4466 norm_betwe~y | -0.0558 -0.1108 0.0018 -0.1136 0.2339 0.2717 0.2919 0.6343 norm_indeg~y | -0.0880 -0.2090 -0.0062 -0.2159 0.1767 0.3264 0.3028 0.5730 norm_outde~y | -0.0849 -0.2040 -0.0036 -0.2103 0.2371 0.3542 0.3778 0.6384 sent_monthly | -0.0822 -0.1233 -0.0111 -0.1288 0.3104 0.4265 0.4251 0.4231 sent_cum | -0.1313 -0.0144 -0.0006 -0.0149 0.7849 0.8844 0.9169 0.4542 people_mon~y | 0.0396 0.5610 -0.0530 0.5667 0.0316 0.0053 0.0028 -0.1251 people_cum | 0.0600 0.9804 -0.0597 0.9964 0.0557 0.0118 0.0088 -0.1419 devs_cum | 0.0673 0.9554 -0.0329 0.9757 0.0519 0.0025 -0.0001 -0.2071 patches_su~d | -0.0088 -0.0322 0.0034 -0.0324 -0.0002 0.0154 0.0115 0.0280 patches_su~m | -0.0437 -0.0976 0.0609 -0.0890 0.0132 0.0817 0.0544 0.1726 patches_co~d | -0.0035 -0.0218 -0.0007 -0.0225 -0.0007 0.0055 0.0041 0.0231 patches_co~m | -0.0225 -0.0627 0.0312 -0.0586 -0.0025 0.0281 0.0071 0.1073 patch_mess~s | -0.0188 -0.0518 0.0068 -0.0520 0.0034 0.0394 0.0341 0.0530 patch_mess~m | -0.0617 -0.1391 0.0802 -0.1280 0.0351 0.1500 0.1257 0.2904 start_date | 0.0921 0.5436 -0.0307 0.5530 -0.0473 -0.1695 -0.1517 -0.1477 commit | -0.0193 -0.0370 0.0035 -0.0374 0.0220 0.0784 0.0661 0.0701 ts | -0.0352 0.4238 -0.0264 0.4306 0.1083 0.1935 0.1713 -0.0117 tf | -0.0352 0.4238 -0.0264 0.4306 0.1083 0.1935 0.1713 -0.0117 _st | . . . . . . . . _d | -0.0193 -0.0370 0.0035 -0.0374 0.0220 0.0784 0.0661 0.0701 _t | -0.0352 0.4238 -0.0264 0.4306 0.1083 0.1935 0.1713 -0.0117 _t0 | -0.0352 0.4238 -0.0264 0.4306 0.1083 0.1935 0.1713 -0.0117 dev_pct | -0.0331 -0.7541 0.0763 -0.7608 -0.0429 -0.0268 -0.0218 -0.0681 time_trend | 0.0627 0.9835 -0.0579 1.0000 0.0554 0.0097 0.0067 -0.1668 patch_any | -0.0475 -0.1101 0.0978 -0.0950 0.0366 0.1693 0.1345 0.1601 patch_curr~t | -0.0256 -0.0551 0.0055 -0.0556 0.0041 0.0432 0.0372 0.0443 success_pct | -0.0477 -0.1049 0.0459 -0.0993 0.0003 0.0825 0.0484 0.2367 | norm_i~m norm_o~m betwee~y indegr~y outdeg~y norm_b~y norm_i~y norm_o~y -------------+------------------------------------------------------------------------ norm_indeg~m | 1.0000 norm_outde~m | 0.9566 1.0000 between_mo~y | 0.2069 0.2442 1.0000 indegree_m~y | 0.4972 0.4920 0.6781 1.0000 outdegree_~y | 0.5020 0.5492 0.7215 0.8870 1.0000 norm_betwe~y | 0.5088 0.5431 0.5470 0.5350 0.5582 1.0000 norm_indeg~y | 0.7086 0.6928 0.3993 0.8134 0.7261 0.6325 1.0000 norm_outde~y | 0.7271 0.7663 0.4359 0.7495 0.8258 0.6702 0.9005 1.0000 sent_monthly | 0.4948 0.5128 0.6009 0.8743 0.8906 0.5288 0.7660 0.7989 sent_cum | 0.4631 0.5174 0.4867 0.4688 0.5432 0.3037 0.3236 0.3796 people_mon~y | -0.2274 -0.2024 0.0300 -0.0340 -0.0320 -0.0813 -0.1374 -0.1325 people_cum | -0.2901 -0.2537 0.0021 -0.1178 -0.1059 -0.0953 -0.1902 -0.1839 devs_cum | -0.3863 -0.3434 -0.0031 -0.1541 -0.1424 -0.1428 -0.2638 -0.2591 patches_su~d | 0.0503 0.0488 0.0222 0.0923 0.0746 0.0453 0.1019 0.0886 patches_su~m | 0.2244 0.2152 0.0281 0.1216 0.1218 0.1611 0.2047 0.2140 patches_co~d | 0.0319 0.0306 0.0108 0.0462 0.0349 0.0295 0.0572 0.0452 patches_co~m | 0.1257 0.1117 0.0093 0.0561 0.0541 0.0966 0.1132 0.1139 patch_mess~s | 0.1018 0.1034 0.0479 0.1714 0.1521 0.0864 0.1931 0.1834 patch_mess~m | 0.3706 0.3779 0.0484 0.1994 0.2061 0.2540 0.3211 0.3449 start_date | -0.2783 -0.2535 -0.0009 -0.0449 -0.0632 -0.0718 -0.1161 -0.1262 commit | 0.1201 0.1190 0.0861 0.2047 0.1805 0.1006 0.1995 0.1886 ts | -0.0312 -0.0184 0.0015 -0.0847 -0.0527 -0.0391 -0.0966 -0.0798 tf | -0.0312 -0.0184 0.0015 -0.0847 -0.0527 -0.0391 -0.0966 -0.0798 _st | . . . . . . . . _d | 0.1201 0.1190 0.0861 0.2047 0.1805 0.1006 0.1995 0.1886 _t | -0.0312 -0.0184 0.0015 -0.0847 -0.0527 -0.0391 -0.0966 -0.0798 _t0 | -0.0312 -0.0184 0.0015 -0.0847 -0.0527 -0.0391 -0.0966 -0.0798 dev_pct | 0.0041 -0.0111 -0.0162 0.0171 0.0082 -0.0665 -0.0263 -0.0359 time_trend | -0.3231 -0.2846 0.0005 -0.1295 -0.1176 -0.1136 -0.2159 -0.2103 patch_any | 0.2212 0.2105 0.0429 0.1508 0.1494 0.1233 0.1870 0.1941 patch_curr~t | 0.0993 0.0978 0.0367 0.1661 0.1449 0.0681 0.1821 0.1696 success_pct | 0.2444 0.2234 0.0186 0.1143 0.1095 0.1430 0.1943 0.1952 | sent_m~y sent_cum people~y people~m devs_cum ~bmitted patche.. ~mmitted -------------+------------------------------------------------------------------------ sent_monthly | 1.0000 sent_cum | 0.4607 1.0000 people_mon~y | -0.0459 -0.0100 1.0000 people_cum | -0.1168 -0.0127 0.5689 1.0000 devs_cum | -0.1538 -0.0215 0.5478 0.9635 1.0000 patches_su~d | 0.1133 0.0159 -0.0185 -0.0301 -0.0373 1.0000 patches_su~m | 0.1508 0.0668 -0.0657 -0.0816 -0.1010 0.2692 1.0000 patches_co~d | 0.0524 0.0106 -0.0154 -0.0205 -0.0284 0.8577 0.2089 1.0000 patches_co~m | 0.0749 0.0238 -0.0427 -0.0536 -0.0665 0.1720 0.8740 0.1873 patch_mess~s | 0.2113 0.0343 -0.0281 -0.0484 -0.0587 0.4795 0.1807 0.2164 patch_mess~m | 0.2440 0.1345 -0.0932 -0.1162 -0.1481 0.1843 0.6706 0.0968 start_date | -0.0654 -0.1569 0.3245 0.5505 0.5455 -0.0121 -0.0779 -0.0118 commit | 0.2639 0.0769 -0.0173 -0.0336 -0.0413 0.0489 0.0880 0.0057 ts | -0.0618 0.1546 0.2320 0.4297 0.4137 -0.0202 -0.0073 -0.0104 tf | -0.0618 0.1546 0.2320 0.4297 0.4137 -0.0202 -0.0073 -0.0104 _st | . . . . . . . . _d | 0.2639 0.0769 -0.0173 -0.0336 -0.0413 0.0489 0.0880 0.0057 _t | -0.0618 0.1546 0.2320 0.4297 0.4137 -0.0202 -0.0073 -0.0104 _t0 | -0.0618 0.1546 0.2320 0.4297 0.4137 -0.0202 -0.0073 -0.0104 dev_pct | 0.0180 -0.0072 -0.4484 -0.7851 -0.6859 0.0185 0.0299 0.0049 time_trend | -0.1288 -0.0149 0.5667 0.9964 0.9757 -0.0324 -0.0890 -0.0225 patch_any | 0.1614 0.1421 -0.0622 -0.0899 -0.1021 0.1076 0.4463 0.0458 patch_curr~t | 0.1800 0.0340 -0.0284 -0.0523 -0.0617 0.4390 0.1812 0.1869 success_pct | 0.1310 0.0829 -0.0692 -0.0899 -0.1154 0.0886 0.4745 0.1005 | patche.. patch_~s patch_~m start_~e commit ts tf _st -------------+------------------------------------------------------------------------ patches_co~m | 1.0000 patch_mess~s | 0.0791 1.0000 patch_mess~m | 0.3297 0.2772 1.0000 start_date | -0.0629 -0.0185 -0.0985 1.0000 commit | 0.0368 0.1431 0.1383 -0.0227 1.0000 ts | 0.0078 -0.0334 -0.0251 -0.5139 -0.0139 1.0000 tf | 0.0078 -0.0334 -0.0251 -0.5139 -0.0139 1.0000 1.0000 _st | . . . . . . . . _d | 0.0368 0.1431 0.1383 -0.0227 1.0000 -0.0139 -0.0139 . _t | 0.0078 -0.0334 -0.0251 -0.5139 -0.0139 1.0000 1.0000 . _t0 | 0.0078 -0.0334 -0.0251 -0.5139 -0.0139 1.0000 1.0000 . dev_pct | 0.0221 0.0261 0.0246 -0.4249 0.0325 -0.3231 -0.3231 . time_trend | -0.0586 -0.0520 -0.1280 0.5530 -0.0374 0.4306 0.4306 . patch_any | 0.2181 0.2171 0.6515 -0.0864 0.0768 -0.0042 -0.0042 . patch_curr~t | 0.0759 0.8858 0.2684 -0.0186 0.1238 -0.0370 -0.0370 . success_pct | 0.5306 0.1043 0.3430 -0.0940 0.0581 -0.0004 -0.0004 . | _d _t _t0 dev_pct time_t~d patch_~y patch_~t succes~t -------------+------------------------------------------------------------------------ _d | 1.0000 _t | -0.0139 1.0000 _t0 | -0.0139 1.0000 1.0000 dev_pct | 0.0325 -0.3231 -0.3231 1.0000 time_trend | -0.0374 0.4306 0.4306 -0.7608 1.0000 patch_any | 0.0768 -0.0042 -0.0042 0.0380 -0.0950 1.0000 patch_curr~t | 0.1238 -0.0370 -0.0370 0.0328 -0.0556 0.2451 1.0000 success_pct | 0.0581 -0.0004 -0.0004 0.0219 -0.0993 0.4176 0.1151 1.0000 . . *plot Kaplan-Meier survivor function, time axis in years . sts graph, failure _d: commit == 1 analysis time _t: tf id: id . graph save km_commit_python,replace (file km_commit_python.gph saved) . graph export km_commit_python.eps,replace (file km_commit_python.eps written in EPS format) . . *plot Nelson-Aalen cumulative hazard function, time axis in years . sts graph,na failure _d: commit == 1 analysis time _t: tf id: id . graph save na_commit_python,replace (file na_commit_python.gph saved) . graph export na_commit_python.eps,replace (file na_commit_python.eps written in EPS format) . . *plot smoothed hazard function, time axis in years . sts graph,hazard failure _d: commit == 1 analysis time _t: tf id: id . graph save haz_commit_python,replace (file haz_commit_python.gph saved) . graph export haz_commit_python.eps,replace (file haz_commit_python.eps written in EPS format) . . *erase extraneous files . erase run1.dta . erase run2.dta . . clear . log close log: D:\Anands Documents\Working Papers\Devanbu\Data\commit\commit_python.txt log type: text closed on: 6 Mar 2007, 13:02:49 ----------------------------------------------------------------------------------------