siat 3.9.10__py3-none-any.whl → 3.9.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
siat/event_study.py CHANGED
@@ -538,7 +538,7 @@ def event_study(ticker,event_date, \
538
538
  #显著性检验:异于零的t检验,事件窗口
539
539
  df_event_window=df0[(df0.index >=event_window_start) & (df0.index <=event_window_end)]
540
540
  #footnote5="事件窗口CAR(终值,p值):"
541
- footnote5="事件窗口CAR(均值,中位数,p值):"
541
+ footnote5="事件窗口CAR(终值,均值,中位数,p值):"
542
542
  for c in list(df_event_window):
543
543
  if 'CAR' in c.upper():
544
544
  c_name=c[:-4]
@@ -577,7 +577,8 @@ def event_study(ticker,event_date, \
577
577
  p_value_str=str(round(p_value,4))[:7]
578
578
  #footnote5=footnote5+c_name+p_value_str+","
579
579
  #footnote5=footnote5+"{0}({1}, {2}), ".format(c_name,car_value_str,p_value_str)
580
- footnote5=footnote5+"{0}({1}, {2}, {3}), ".format(c_name,car_mean_str,car_median_str,p_value_str)
580
+ footnote5=footnote5+"{0}({1}, {2}, {3}, {4}), ".format(c_name,car_value_str,car_mean_str, \
581
+ car_median_str,p_value_str)
581
582
 
582
583
  if 'BHAR' in c.upper():
583
584
  bhar_value=df_event_window[c][-1]
@@ -587,9 +588,9 @@ def event_study(ticker,event_date, \
587
588
  bhar_value_str=str(round(bhar_value,4))[:7]
588
589
 
589
590
  if show_BHAR:
590
- footnote5=footnote5+"BHAR: {0}, ".format(bhar_value_str)
591
+ footnote5=footnote5+"BHAR终值: {0}; ".format(bhar_value_str)
591
592
 
592
- footnote5=footnote5.strip(", ")
593
+ footnote5=footnote5.strip(", "); footnote5=footnote5.strip("; ")
593
594
 
594
595
  #显著性检验:异于零的t检验,事件后窗口
595
596
  df_post_event_window=df0[(df0.index >event_window_end) & (df0.index <=post_event_end)]
@@ -599,7 +600,7 @@ def event_study(ticker,event_date, \
599
600
  footnote6=''
600
601
  else:
601
602
  #footnote6="事件后窗口CAR(终值,p值):"
602
- footnote6="事件后窗口CAR(均值,中位数,p值):"
603
+ footnote6="事件后窗口CAR(终值,均值,中位数,p值):"
603
604
  for c in list(df_post_event_window):
604
605
  if 'CAR' in c.upper():
605
606
  c_name=c[:-4]
@@ -639,7 +640,7 @@ def event_study(ticker,event_date, \
639
640
  p_value_str=str(round(p_value,4))[:7]
640
641
 
641
642
  #footnote6=footnote6+c[:-4]+str(p_value)[:6]+","
642
- footnote6=footnote6+"{0}({1}, {2}, {3}), ".format(c_name,car_mean_str,car_median_str,p_value_str)
643
+ footnote6=footnote6+"{0}({1}, {2}, {3}, {4}), ".format(c_name,car_value_str,car_mean_str,car_median_str,p_value_str)
643
644
 
644
645
  if 'BHAR' in c.upper():
645
646
  bhar_value=df_post_event_window[c][-1]
@@ -649,9 +650,9 @@ def event_study(ticker,event_date, \
649
650
  bhar_value_str=str(round(bhar_value,4))[:7]
650
651
 
651
652
  if show_BHAR:
652
- footnote6=footnote6+"BHAR: {0}, ".format(bhar_value_str)
653
+ footnote6=footnote6+"BHAR终值: {0}; ".format(bhar_value_str)
653
654
 
654
- footnote6=footnote6.strip(", ")
655
+ footnote6=footnote6.strip(", "); footnote6=footnote6.strip("; ")
655
656
 
656
657
  footnote7="数据来源:Sina/EM/Yahoo/Stooq/SWHY,"+stoday
657
658
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: siat
3
- Version: 3.9.10
3
+ Version: 3.9.11
4
4
  Summary: Securities Investment Analysis Tools (siat)
5
5
  Home-page: https://pypi.org/project/siat/
6
6
  Author: Prof. WANG Dehong, International Business School, Beijing Foreign Studies University
@@ -34,7 +34,7 @@ siat/economy2.py,sha256=inmArHl43HFnSn6O4uY-xcsQY93IyMlFet3pQ7JpsjM,81089
34
34
  siat/economy_test.py,sha256=6vjNlPz7W125pJb7simCddobSEp3jmLIMvVkLRZ7zW8,13339
35
35
  siat/esg.py,sha256=GMhaonIKtvOK83rhpQUH5aJt2OL3HQBSVfD__Yw-0oo,19040
36
36
  siat/esg_test.py,sha256=Z9m6GUt8O7oHZSEG9aDYpGdvvrv2AiRJdHTiU6jqmZ0,2944
37
- siat/event_study.py,sha256=xhWpKMcLbXxyFWADxgEeMLp_370CsPonGlELbpOJVLA,36978
37
+ siat/event_study.py,sha256=uQojKR5Mg3AC1PCSpx_CBHfUjJr0B4E-iCWxNF0Vif8,37178
38
38
  siat/exchange_bond_china.pickle,sha256=zDqdPrFacQ0nqjP_SuF6Yy87EgijIRsFvFroW7FAYYY,1265092
39
39
  siat/fama_french.py,sha256=aUTC-67t_CEPbLk4u79woW_zfZ7OCP6Fo4z5EdWCSkQ,48051
40
40
  siat/fama_french_test.py,sha256=M4O23lBKsJxhWHRluwCb3l7HSEn3OFTjzGMpehcevRg,4678
@@ -145,8 +145,8 @@ siat/valuation_china.py,sha256=eSKIDckyjG8QkENlW_OKkqbQHno8pzDcomBO9iGNJVM,83079
145
145
  siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
146
146
  siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
147
147
  siat/yf_name.py,sha256=laNKMTZ9hdenGX3IZ7G0a2RLBKEWtUQJFY9CWuk_fp8,24058
148
- siat-3.9.10.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
149
- siat-3.9.10.dist-info/METADATA,sha256=tcyrbbCQ4PKsHAi4jCkJXdIAXyCicGRom6snzC3cqso,8335
150
- siat-3.9.10.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
151
- siat-3.9.10.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
152
- siat-3.9.10.dist-info/RECORD,,
148
+ siat-3.9.11.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
149
+ siat-3.9.11.dist-info/METADATA,sha256=qWH6uFB65v5Tt0vrvTH9GXJ2Zzl3Ub2rBuFmAAFS1T8,8335
150
+ siat-3.9.11.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
151
+ siat-3.9.11.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
152
+ siat-3.9.11.dist-info/RECORD,,
File without changes
File without changes