RiskPremium

Measuring the market risk premium
Log | Files | Refs

commit cafb1aaf36fefe07113763dba8dfdf1476c12700
parent 72c9aecff94745aae83882a40c4a2f801870b780
Author: Erik Loualiche <eloualic@umn.edu>
Date:   Tue, 27 Aug 2019 21:52:10 +0200

Align cay quarterly dates properly with other monthly variables

Diffstat:
M.gitignore | 7+++++--
MMakefile | 5++++-
Mlog/R-session-info.log.R | 56++++++++++++++++++++++++++++----------------------------
Mlog/import_predictors.log.R | 53++++++++++++++++++++++++++++-------------------------
Mlog/rp_measure.log.R | 68++++++++++++++++++++++++++++++++++----------------------------------
Moutput/predict.csv | 512++++++++++++++++++++++++++++++++++++++++----------------------------------------
Moutput/predict.png | 0
Mreadme.md | 18+++++++++---------
Msrc/import_predictors.R | 7+++++--
Msrc/rp_measure.R | 2+-
10 files changed, 370 insertions(+), 358 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -9,4 +9,7 @@ tmp # Specific files docs/dividendpriceratio.tex -input/msi.sas7bdat- \ No newline at end of file +input/msi.sas7bdat + +# Sources +src/paymon.R+ \ No newline at end of file diff --git a/Makefile b/Makefile @@ -2,7 +2,7 @@ # Makefile for PREDICTING THE EQUITY RISK PREMIUM # # Created on June 04th 2019 -# Last modified on April 04th 2019 +# Last modified on June 14th 2019 ## -------------------------------------------------------------------------------------------------------- @@ -14,10 +14,12 @@ all: output/predict.csv readme.md ## DOWNLOAD THE DATA FROM WRDS input/msi.sas7bdat: rsync -aPvzh --stats --human-readable XXXX@wrds-cloud.wharton.upenn.edu:/wrds/crsp/sasdata/a_stock/msi.sas7bdat ./input/ + @echo ## GENERATE PREDICTORS tmp/predict.csv: src/import_predictors.R input/cay_current.csv input/msi.sas7bdat R CMD BATCH $(R_OPTS) src/import_predictors.R log/import_predictors.log.R + @echo ## RUN REGRESSIONS output/predict.csv: src/rp_measure.R tmp/predict.csv @@ -27,6 +29,7 @@ output/predict.csv: src/rp_measure.R tmp/predict.csv ## OUTPUT RESULTS readme.md: src/readme_in.md cat src/readme_in.md tmp/reg_update.txt > readme.md + @echo ## ## -------------------------------------------------------------------------------------------------------- diff --git a/log/R-session-info.log.R b/log/R-session-info.log.R @@ -9,8 +9,8 @@ ui X11 language (EN) collate en_US.UTF-8 - tz America/New_York - date 2019-06-10 + tz Europe/Paris + date 2019-08-27 package * version date source alfred * 0.1.6 2018-04-06 CRAN (R 3.5.1) @@ -19,14 +19,14 @@ base * 3.5.1 2018-08-05 local colorspace 1.3-2 2016-12-14 CRAN (R 3.5.1) compiler 3.5.1 2018-08-05 local - crayon * 1.3.4 2019-05-19 Github (gaborcsardi/crayon@84be620) - data.table * 1.12.3 2019-06-03 local + crayon * 1.3.4 2019-07-10 Github (gaborcsardi/crayon@84be620) + data.table * 1.12.3 2019-07-02 local datasets * 3.5.1 2018-08-05 local devtools * 1.13.6 2018-06-27 CRAN (R 3.5.1) digest 0.6.15 2018-01-28 CRAN (R 3.5.1) - dplyr * 0.8.0.9010 2019-03-31 Github (tidyverse/dplyr@6832c62) + dplyr * 0.8.3.9000 2019-07-05 Github (tidyverse/dplyr@b1b79b9) forcats 0.3.0 2018-02-19 CRAN (R 3.5.1) - ggplot2 3.1.0.9000 2019-03-31 Github (tidyverse/ggplot2@230e8f7) + ggplot2 3.2.0.9000 2019-07-10 Github (tidyverse/ggplot2@125cc5f) glue 1.3.0 2018-07-17 CRAN (R 3.5.1) graphics * 3.5.1 2018-08-05 local grDevices * 3.5.1 2018-08-05 local @@ -43,24 +43,24 @@ methods * 3.5.1 2018-08-05 local munsell 0.5.0 2018-06-12 CRAN (R 3.5.1) parallel 3.5.1 2018-08-05 local - pillar 1.4.0.9002 2019-05-19 Github (r-lib/pillar@5ded57f) - pkgconfig 2.0.2 2019-05-19 Github (r-lib/pkgconfig@5453f79) + pillar 1.4.2.9000 2019-07-10 Github (r-lib/pillar@a6aa768) + pkgconfig 2.0.2 2019-07-10 Github (r-lib/pkgconfig@5453f79) purrr 0.2.5 2018-05-29 CRAN (R 3.5.1) R6 2.2.2 2017-06-17 CRAN (R 3.5.0) - Rcpp 1.0.1.3 2019-05-19 Github (RcppCore/Rcpp@6062d56) + Rcpp 1.0.1.3 2019-07-10 Github (RcppCore/Rcpp@d04eae8) RcppRoll * 0.3.0 2018-06-05 CRAN (R 3.5.1) - rlang 0.3.4.9003 2019-05-19 Github (r-lib/rlang@6a232c0) - scales 1.0.0.9000 2019-03-31 Github (r-lib/scales@c374014) + rlang 0.4.0.9000 2019-07-10 Github (r-lib/rlang@a3d7e47) + scales 1.0.0.9000 2019-07-10 Github (r-lib/scales@7f6f4a5) statar * 0.6.5 2017-07-06 CRAN (R 3.5.1) stats * 3.5.1 2018-08-05 local stringi 1.2.4 2018-07-20 CRAN (R 3.5.1) stringr * 1.3.1 2018-05-10 CRAN (R 3.5.1) - tibble 2.1.1.9000 2019-05-19 Github (tidyverse/tibble@71b8ff6) + tibble 2.1.3.9000 2019-07-10 Github (tidyverse/tibble@f0d0106) tidyr 0.8.3.9000 2019-05-19 Github (tidyverse/tidyr@b6ec78b) - tidyselect 0.2.5.9000 2019-05-19 Github (tidyverse/tidyselect@19150c0) + tidyselect 0.2.5.9000 2019-07-05 Github (tidyverse/tidyselect@013a51a) tools 3.5.1 2018-08-05 local utils * 3.5.1 2018-08-05 local - vctrs 0.1.0.9003 2019-05-19 Github (r-lib/vctrs@b1e6b81) + vctrs 0.2.0.9000 2019-07-10 Github (r-lib/vctrs@9c5b2cc) withr 2.1.2 2018-03-15 CRAN (R 3.5.1) zeallot 0.1.0 2018-01-28 CRAN (R 3.5.1) @@ -74,8 +74,8 @@ ui X11 language (EN) collate en_US.UTF-8 - tz America/New_York - date 2019-06-10 + tz Europe/Paris + date 2019-08-27 package * version date source assertthat 0.2.0 2017-04-11 CRAN (R 3.5.1) @@ -83,13 +83,13 @@ base * 3.5.1 2018-08-05 local colorspace 1.3-2 2016-12-14 CRAN (R 3.5.1) compiler 3.5.1 2018-08-05 local - crayon * 1.3.4 2019-05-19 Github (gaborcsardi/crayon@84be620) - data.table * 1.12.3 2019-06-03 local + crayon * 1.3.4 2019-07-10 Github (gaborcsardi/crayon@84be620) + data.table * 1.12.3 2019-07-02 local datasets * 3.5.1 2018-08-05 local devtools * 1.13.6 2018-06-27 CRAN (R 3.5.1) digest 0.6.15 2018-01-28 CRAN (R 3.5.1) - dplyr 0.8.0.9010 2019-03-31 Github (tidyverse/dplyr@6832c62) - ggplot2 * 3.1.0.9000 2019-03-31 Github (tidyverse/ggplot2@230e8f7) + dplyr 0.8.3.9000 2019-07-05 Github (tidyverse/dplyr@b1b79b9) + ggplot2 * 3.2.0.9000 2019-07-10 Github (tidyverse/ggplot2@125cc5f) glue 1.3.0 2018-07-17 CRAN (R 3.5.1) graphics * 3.5.1 2018-08-05 local grDevices * 3.5.1 2018-08-05 local @@ -105,25 +105,25 @@ methods * 3.5.1 2018-08-05 local munsell 0.5.0 2018-06-12 CRAN (R 3.5.1) parallel 3.5.1 2018-08-05 local - pillar 1.4.0.9002 2019-05-19 Github (r-lib/pillar@5ded57f) - pkgconfig 2.0.2 2019-05-19 Github (r-lib/pkgconfig@5453f79) + pillar 1.4.2.9000 2019-07-10 Github (r-lib/pillar@a6aa768) + pkgconfig 2.0.2 2019-07-10 Github (r-lib/pkgconfig@5453f79) purrr 0.2.5 2018-05-29 CRAN (R 3.5.1) R6 2.2.2 2017-06-17 CRAN (R 3.5.0) - Rcpp 1.0.1.3 2019-05-19 Github (RcppCore/Rcpp@6062d56) - rlang 0.3.4.9003 2019-05-19 Github (r-lib/rlang@6a232c0) + Rcpp 1.0.1.3 2019-07-10 Github (RcppCore/Rcpp@d04eae8) + rlang 0.4.0.9000 2019-07-10 Github (r-lib/rlang@a3d7e47) sandwich * 2.4-0 2017-07-26 CRAN (R 3.5.1) - scales 1.0.0.9000 2019-03-31 Github (r-lib/scales@c374014) + scales 1.0.0.9000 2019-07-10 Github (r-lib/scales@7f6f4a5) stargazer * 5.2.2 2018-05-30 CRAN (R 3.5.1) statar * 0.6.5 2017-07-06 CRAN (R 3.5.1) stats * 3.5.1 2018-08-05 local stringi 1.2.4 2018-07-20 CRAN (R 3.5.1) stringr * 1.3.1 2018-05-10 CRAN (R 3.5.1) - tibble 2.1.1.9000 2019-05-19 Github (tidyverse/tibble@71b8ff6) + tibble 2.1.3.9000 2019-07-10 Github (tidyverse/tibble@f0d0106) tidyr 0.8.3.9000 2019-05-19 Github (tidyverse/tidyr@b6ec78b) - tidyselect 0.2.5.9000 2019-05-19 Github (tidyverse/tidyselect@19150c0) + tidyselect 0.2.5.9000 2019-07-05 Github (tidyverse/tidyselect@013a51a) tools 3.5.1 2018-08-05 local utils * 3.5.1 2018-08-05 local - vctrs 0.1.0.9003 2019-05-19 Github (r-lib/vctrs@b1e6b81) + vctrs 0.2.0.9000 2019-07-10 Github (r-lib/vctrs@9c5b2cc) wesanderson * 0.3.6 2018-04-20 CRAN (R 3.5.1) withr 2.1.2 2018-03-15 CRAN (R 3.5.1) zeallot 0.1.0 2018-01-28 CRAN (R 3.5.1) diff --git a/log/import_predictors.log.R b/log/import_predictors.log.R @@ -48,7 +48,7 @@ Type 'q()' to quit R. Log file for code executed at > message(format(Sys.time(), "%a %b %d %X %Y")) -Mon Jun 10 11:42:28 2019 +Tue Aug 27 21:49:24 2019 > ################################################################################## > > @@ -93,7 +93,7 @@ The following objects are masked from ‘package:lubridate’: The following objects are masked from ‘package:dplyr’: - between, first, last + between, coalesce, first, last > > check_file = file.exists("log/R-session-info.log.R") @@ -117,20 +117,22 @@ Packages ---------------------------------------------------------------------- > ################################################################################## > # 2. CAY > dt_cay <- fread("./input/cay_current.csv", skip=1, header=T) -> dt_cay <- dt_cay[, .(dateym=as.integer(str_sub(date, 1, 6)), cay=cay) ] +> dt_cay <- dt_cay[, .(date_y=as.integer(str_sub(date, 1, 4)), ++ quarter=as.integer(str_sub(date, 5, 6)), cay=cay) ] +> dt_cay <- dt_cay[, .(dateym=date_y*100+quarter*3, cay) ] > dt_cay dateym cay - 1: 195201 0.01646544 - 2: 195202 0.02551783 - 3: 195203 0.01633620 - 4: 195204 0.02542006 - 5: 195301 0.02543387 + 1: 195203 0.01646544 + 2: 195206 0.02551783 + 3: 195209 0.01633620 + 4: 195212 0.02542006 + 5: 195303 0.02543387 --- -259: 201603 -0.02916950 -260: 201604 -0.02042846 -261: 201701 -0.02529660 -262: 201702 -0.02655350 -263: 201703 -0.02760623 +259: 201609 -0.02916950 +260: 201612 -0.02042846 +261: 201703 -0.02529660 +262: 201706 -0.02655350 +263: 201709 -0.02760623 > ################################################################################## > > @@ -203,20 +205,21 @@ Packages ---------------------------------------------------------------------- > dt_predict <- merge(dt_dp, dt_tbill, by = c("dateym")) > dt_predict <- merge(dt_predict, dt_rmrf, by = c("dateym"), all.x = T) > dt_predict <- merge(dt_predict, dt_cay, by = c("dateym"), all.x = T) -> dt_predict <- dt_predict[ !is.na(rmrf_y3) & !is.na(cay) ] +> dt_predict <- dt_predict[ !is.na(rmrf_y3) ] +> dt_predict <- dt_predict[ !is.na(cay) ] > dt_predict[] dateym dp rf rmrf_y3 cay - 1: 195201 0.05812871 0.0157 0.17701996 0.01646544 - 2: 195202 0.05899675 0.0154 0.19964326 0.02551783 - 3: 195203 0.05817138 0.0159 0.18092953 0.01633620 - 4: 195204 0.05847809 0.0157 0.21473395 0.02542006 - 5: 195301 0.05472504 0.0196 0.21110181 0.02543387 + 1: 195203 0.05817138 0.0159 0.18092953 0.01646544 + 2: 195206 0.05739649 0.0170 0.21642173 0.02551783 + 3: 195209 0.05709103 0.0171 0.23193277 0.01633620 + 4: 195212 0.05522191 0.0209 0.22202729 0.02542006 + 5: 195303 0.05455042 0.0201 0.26058722 0.02543387 --- -252: 201404 0.02159773 0.0003 0.08441447 -0.02747550 -253: 201501 0.02090927 0.0003 0.12632351 -0.03462231 -254: 201502 0.02098770 0.0002 0.09072934 -0.03462943 -255: 201503 0.02111608 0.0003 0.08734601 -0.02656083 -256: 201504 0.02109137 0.0002 0.08565438 -0.03519129 +252: 201412 0.02094913 0.0003 0.09787760 -0.02747550 +253: 201503 0.02111608 0.0003 0.08734601 -0.03462231 +254: 201506 0.02111542 0.0002 0.09928718 -0.03462943 +255: 201509 0.02153820 0.0002 0.15268617 -0.02656083 +256: 201512 0.02191271 0.0023 0.07465740 -0.03519129 > > fwrite(dt_predict, "./tmp/predict.csv") > ################################################################################## @@ -237,4 +240,4 @@ Packages ---------------------------------------------------------------------- > > proc.time() user system elapsed - 1.670 0.187 2.484 + 1.400 0.153 2.169 diff --git a/log/rp_measure.log.R b/log/rp_measure.log.R @@ -36,7 +36,7 @@ Type 'q()' to quit R. Log file for code executed at > message(format(Sys.time(), "%a %b %d %X %Y")) -Mon Jun 10 11:42:31 2019 +Tue Aug 27 21:49:26 2019 > ################################################################################## > > @@ -129,24 +129,24 @@ Packages ---------------------------------------------------------------------- test test (1) (2) (3) (4) ------------------------------------------------------------------------------------------- -dp 2.932*** 2.932*** 2.788*** 2.788*** - (0.411) (1.022) (0.411) (1.077) +dp 2.976*** 2.976*** 2.833*** 2.833*** + (0.415) (1.016) (0.419) (1.081) -cay 2.363*** 2.363*** 2.076*** 2.076*** - (0.244) (0.545) (0.234) (0.568) +cay 2.561*** 2.561*** 2.270*** 2.270*** + (0.242) (0.548) (0.233) (0.565) -rf -0.852*** -0.852** -1.093*** -1.093*** - (0.161) (0.353) (0.151) (0.376) +rf -0.861*** -0.861** -1.152*** -1.152*** + (0.166) (0.346) (0.156) (0.378) -Constant 0.001 0.001 0.022* 0.022 - (0.014) (0.036) (0.013) (0.036) +Constant -0.001 -0.001 0.024* 0.024 + (0.014) (0.034) (0.013) (0.036) ------------------------------------------------------------------------------------------- Observations 236 256 -R2 0.438 0.400 -Adjusted R2 0.431 0.393 -Residual Std. Error 0.070 (df = 232) 0.070 (df = 252) -F Statistic 60.270*** (df = 3; 232) 56.022*** (df = 3; 252) +R2 0.463 0.423 +Adjusted R2 0.456 0.416 +Residual Std. Error 0.069 (df = 232) 0.070 (df = 252) +F Statistic 66.603*** (df = 3; 232) 61.652*** (df = 3; 252) =========================================================================================== Note: *p<0.1; **p<0.05; ***p<0.01 > @@ -159,21 +159,21 @@ Note: *p<0.1; **p<0.05 =========================================================== Future Excess Returns ----------------------------------------------------------- -D/P ratio 2.788*** - (0.411) +D/P ratio 2.833*** + (0.419) -cay 2.076*** - (0.234) +cay 2.270*** + (0.233) -T-bill (three-month) -1.093*** - (0.151) +T-bill (three-month) -1.152*** + (0.156) -Constant 0.022* +Constant 0.024* (0.013) Observations 256 -R2 0.400 -F Statistic 56.022*** (df = 3; 252) +R2 0.423 +F Statistic 61.652*** (df = 3; 252) ----------------------------------------------------------- Notes: ***Significant at the 1 percent level. **Significant at the 5 percent level. @@ -196,21 +196,21 @@ Notes: ***Significant at the 1 percent level. > ################################################################################## > # PLOT > dt_plot <- dt_exp_rmrf[, .( -+ date=as.Date(ISOdate(str_sub(dateym,1, 4), 3*as.integer(str_sub(dateym, 5, 6)), 1)), ++ date=as.Date(ISOdate(str_sub(dateym,1, 4), as.integer(str_sub(dateym, 5, 6)), 1)), + dp, cay, rf, rmrf_y3, exp_rmrf)] > dt_plot[] date dp cay rf rmrf_y3 exp_rmrf - 1: 1952-03-01 0.05812871 0.01646544 0.0157 0.17701996 0.201294617 - 2: 1952-06-01 0.05899675 0.02551783 0.0154 0.19964326 0.222836429 - 3: 1952-09-01 0.05817138 0.01633620 0.0159 0.18092953 0.200926735 - 4: 1952-12-01 0.05847809 0.02542006 0.0157 0.21473395 0.220859636 - 5: 1953-03-01 0.05472504 0.02543387 0.0196 0.21110181 0.206163415 + 1: 1952-03-01 0.05817138 0.01646544 0.0159 0.18092953 0.207727996 + 2: 1952-06-01 0.05739649 0.02551783 0.0170 0.21642173 0.224814274 + 3: 1952-09-01 0.05709103 0.01633620 0.0171 0.23193277 0.202990900 + 4: 1952-12-01 0.05522191 0.02542006 0.0209 0.22202729 0.213936934 + 5: 1953-03-01 0.05455042 0.02543387 0.0201 0.26058722 0.212987813 --- -252: 2014-12-01 0.02159773 -0.02747550 0.0003 0.08441447 0.025044998 -253: 2015-03-01 0.02090927 -0.03462231 0.0003 0.12632351 0.008287874 -254: 2015-06-01 0.02098770 -0.03462943 0.0002 0.09072934 0.008601014 -255: 2015-09-01 0.02111608 -0.02656083 0.0003 0.08734601 0.025601134 -256: 2015-12-01 0.02109137 -0.03519129 0.0002 0.08565438 0.007723565 +252: 2014-12-01 0.02094913 -0.02747550 0.0003 0.09787760 0.020501440 +253: 2015-03-01 0.02111608 -0.03462231 0.0003 0.08734601 0.004750878 +254: 2015-06-01 0.02111542 -0.03462943 0.0002 0.09928718 0.004848069 +255: 2015-09-01 0.02153820 -0.02656083 0.0002 0.15268617 0.024361936 +256: 2015-12-01 0.02191271 -0.03519129 0.0023 0.07465740 0.003411385 > > > p0 <- dt_plot[, .(date, dp, cay, rf, rmrf_y3) ] %>% @@ -240,4 +240,4 @@ Notes: ***Significant at the 1 percent level. > > proc.time() user system elapsed - 2.672 0.240 2.992 + 2.563 0.196 2.694 diff --git a/output/predict.csv b/output/predict.csv @@ -1,257 +1,257 @@ dateym,dp,rf,rmrf_y3,cay,exp_rmrf -195201,0.0581287131894728,0.0157,0.177019961562261,0.016465442,0.201294617486037 -195202,0.0589967453225037,0.0154,0.19964325804685,0.025517831,0.222836429411759 -195203,0.0581713806310763,0.0159,0.180929532251361,0.016336205,0.200926734684572 -195204,0.0584780946526435,0.0157,0.214733953196853,0.025420057,0.220859636404277 -195301,0.0547250371055443,0.0196,0.211101809171043,0.025433872,0.206163415216804 -195302,0.0546498098979295,0.0197,0.227929429874815,0.020293056,0.195171419127699 -195303,0.0545504244369111,0.0201,0.260587223971332,0.019145117,0.192074005009544 -195304,0.054206387694773,0.0219,0.2748816063734,0.015786553,0.182175259682799 -195401,0.0570604043316226,0.0118,0.21766172756048,0.020888805,0.211760914645625 -195402,0.0568472586516797,0.0097,0.202697379083833,0.026069547,0.224217091252964 -195403,0.056836429875606,0.0103,0.196594741462133,0.026467811,0.224358164083958 -195404,0.0566512145759913,0.0097,0.196775291888223,0.026721624,0.22502431191414 -195501,0.0487919016478713,0.0122,0.05890251816168,0.036556615,0.220799481829112 -195502,0.0470588193792381,0.0117,0.0424017681122801,0.029382724,0.201620006439142 -195503,0.0464351569511314,0.0128,0.0538608706994908,0.021232813,0.181759051820372 -195504,0.0461107465486547,0.0159,0.053349266978119,0.020523432,0.175994639323023 -195601,0.0422207458629858,0.0241,0.110128089148917,0.007713701,0.129594932312297 -195602,0.0417131044839564,0.0232,0.0997714119762674,0.001744495,0.116770150872083 -195603,0.0410553744034771,0.0225,0.0761698431974343,0.001832813,0.115884591875336 -195604,0.0410189463354631,0.026,0.0883760916392848,-0.001335726,0.105380495628137 -195701,0.0403717456935299,0.0311,0.0939832648286218,0.00339647,0.107828273231766 -195702,0.0410273505043959,0.031,0.106745572597796,-0.003867536,0.0946843648738425 -195703,0.041502794604927,0.0308,0.0911975128943467,0.00490717,0.114445862877671 -195704,0.0419112858899417,0.0307,0.0696125988619829,0.007711104,0.121515338293684 -195801,0.0431248954963795,0.0244,0.160284113322251,0.005998902,0.128227786058988 -195802,0.0437361859869378,0.0153,0.180945823832762,0.005183657,0.138182543721839 -195803,0.0439815664307764,0.013,0.179254470012994,-0.005604405,0.118982332875378 -195804,0.0441598605316312,0.0113,0.169573655380948,-0.008257894,0.115827922682284 -195901,0.0392451362165543,0.0282,0.0854793445355173,0.000662285,0.102179394709798 -195902,0.0373399699812126,0.027,0.0882617201272629,-0.000131677,0.0965305484135261 -195903,0.0365289954269653,0.028,0.0847294324818499,0.014178326,0.122886305298493 -195904,0.0359899073915628,0.0295,0.0476326508030944,0.007738833,0.106375138518521 -196001,0.0328208955319162,0.0435,0.0639376048973606,0.005221836,0.0770172983816412 -196002,0.0331120229155267,0.0396,0.0505676889186921,0.011585551,0.0953021552906516 -196003,0.0332730977456775,0.0331,0.0680967522149993,0.009399733,0.0983153524806848 -196004,0.0333660513456849,0.0323,0.0910793739935867,0.006348754,0.0931143949683263 -196101,0.0348464332571762,0.0224,0.071761592646868,-0.005321467,0.0838299805903801 -196102,0.0342056981952254,0.0242,0.0641226630105651,-0.006330947,0.0779810350154744 -196103,0.033682930604447,0.0239,0.0594052751881322,-0.014107274,0.0607066813859207 -196104,0.0333537946182845,0.0229,0.0586827512911197,-0.013516911,0.0621073521288498 -196201,0.029878590670065,0.0272,0.0763108810275168,-0.011333983,0.0522520955212678 -196202,0.0300414665195343,0.0273,0.0714587023419917,0.004442257,0.0853504418846922 -196203,0.0292542603363362,0.0272,0.0692992845659701,0.005495361,0.0854513370407508 -196204,0.0293304031898459,0.0273,0.105779935826169,0.002257557,0.0788322624109096 -196301,0.0342681523639691,0.0291,0.121617041636105,-0.002865398,0.0799961515498509 -196302,0.0348945784287379,0.0292,0.126406967292778,-0.004627073,0.0779759130382434 -196303,0.0351003938894386,0.0289,0.105351263735985,-0.002128803,0.0840642537300026 -196304,0.0352332988866019,0.029,0.0966248887361794,-0.003280283,0.0819349109138234 -196401,0.0320657076692646,0.0352,0.046512759692763,-0.002650558,0.067636620648273 -196402,0.0317500155493335,0.0353,0.0438772839775481,-0.009752038,0.0519036116674162 -196403,0.031759291322847,0.0354,0.0526435900742601,-0.005761464,0.0601051550389221 -196404,0.0317308391899695,0.0347,0.0656240544843905,-0.014444917,0.042762709258473 -196501,0.0305239211978884,0.0381,0.0324675692881407,-0.004525471,0.0562768695031782 -196502,0.0303224890675833,0.0393,0.0176689595298194,0.000414293,0.0646596918652699 -196503,0.0304150800505866,0.0393,0.0228091536101451,-0.011596207,0.0399824906940131 -196504,0.0303679882632506,0.0393,0.0425146869214896,-0.006742255,0.0499286280660711 -196601,0.0304920957244396,0.0459,0.0475749895784574,0.00580688,0.0691168441303839 -196602,0.0306464414128182,0.0465,0.0305852424674575,-0.001231731,0.0542785154947143 -196603,0.030783599975638,0.0459,0.048708194942642,0.002559774,0.06318815371497 -196604,0.0308605709738825,0.0462,0.0464735356983772,-0.010629308,0.0356927235882057 -196701,0.0343631993231889,0.0472,-0.0161308303151717,-0.024489963,0.0155889832366433 -196702,0.0345772669688965,0.0456,-0.000782038401440532,-0.020558797,0.026095639493092 -196703,0.0344368333870317,0.0426,-0.0186109941464203,-0.027978763,0.0135772198139344 -196704,0.0343496816777643,0.0384,-0.0709861780170376,-0.034737055,0.00389223919442565 -196801,0.0310181330706487,0.05,-0.0256019382403263,-0.024159319,0.00388993229511627 -196802,0.031019571013416,0.0498,-0.00717480015657768,-0.032152456,-0.0124823140116765 -196803,0.0306503240878144,0.0517,0.0062696448580386,-0.019056095,0.0116019365275069 -196804,0.031084116037858,0.0538,-0.0138484295137018,-0.0314476,-0.0152095472347831 -196901,0.0287304251075091,0.0614,-0.0353184634872716,-0.02064361,-0.00764527433685784 -196902,0.0285686148239374,0.0612,-0.00377592389930559,-0.019709664,-0.00593888479210475 -196903,0.0286007883374296,0.0602,-0.0107937706839798,-0.029871379,-0.025853575600708 -196904,0.0284572256823781,0.0611,-0.0158541165290558,-0.026299811,-0.0198221713232771 -197001,0.0312810778590221,0.0787,0.0766171543491634,-0.02606305,-0.0306881175733153 -197002,0.0315934052735381,0.0713,0.0414275791232244,-0.024923509,-0.0193659750643643 -197003,0.0320562287254379,0.0663,0.0401370039109226,-0.031320803,-0.0258940225515469 -197004,0.0321020416674714,0.0651,0.0616474532654956,-0.03582528,-0.0338070027566125 -197101,0.0358454347245295,0.0444,-0.0317583271522957,-0.04100823,-0.0115131730131573 -197102,0.0354723161654168,0.037,-0.0368434372985778,-0.046916453,-0.0167341362337077 -197103,0.035348123314701,0.0338,-0.0611257772726066,-0.043619693,-0.00673944324423086 -197104,0.0351385396969431,0.0386,-0.0879776156243998,-0.040591807,-0.00628215504293933 -197201,0.0299826775163236,0.0338,-0.14773401343699,-0.040636151,-0.0155042086381803 -197202,0.0294943794242715,0.032,-0.141536189375517,-0.033364191,0.000198683262483249 -197203,0.029219856887389,0.0373,-0.136373174429339,-0.031477741,-0.00244116780944888 -197204,0.0289927412163766,0.0371,-0.123309158834157,-0.047133812,-0.0353598659423875 -197301,0.0270523733261653,0.0541,-0.0917762275027932,-0.034177498,-0.0324455486027433 -197302,0.0268027147848457,0.056,-0.0752160467029755,-0.035712602,-0.0384046912215465 -197303,0.0268259739761796,0.0609,-0.0637272576536563,-0.037736915,-0.0478965126655736 -197304,0.0273219364362691,0.0626,-0.048195068824771,-0.036300172,-0.045388381653215 -197401,0.031193365755036,0.0777,0.00143235668895825,-0.029528202,-0.0370341237779474 -197402,0.0323069923269764,0.0712,-0.00452756369145879,-0.017242602,-0.00132066089854589 -197403,0.0328202165665916,0.0796,0.00119638056991866,-0.00362426,0.0192054819302283 -197404,0.0333957206773164,0.0833,0.0212630857869154,-0.017182557,-0.011381539074101 -197501,0.0454258856890025,0.0626,0.0646618944602968,-0.016113014,0.0469969787447845 -197502,0.047133432598942,0.055,0.040716479747033,-0.045009185,6.95408316139373e-05 -197503,0.0478542021372892,0.0549,0.0419109094756205,-0.013775729,0.0670330090592572 -197504,0.0480175337974316,0.0561,0.0540375701360212,-0.0128038,0.0681950638947964 -197601,0.0417125234366044,0.0487,0.0189444281903521,-0.010228867,0.0640479790159743 -197602,0.0404373120187926,0.0488,0.00530997678992984,-0.010633726,0.0595428575018741 -197603,0.0401391807499351,0.05,0.0173208165885408,-0.006595377,0.0657846267053299 -197604,0.0394173879384201,0.0486,0.0230589356868332,-0.000572058,0.0778071345253925 -197701,0.0401037249062322,0.0462,0.05847017731622,0.010392845,0.10510754499098 -197702,0.0410780566419435,0.0467,0.0631461768146131,0.004378317,0.0947907481966622 -197703,0.0412761952784178,0.046,0.0171040336151946,0.001528312,0.0901910329159228 -197704,0.0413930937959936,0.0454,0.0314683234991175,0.005165188,0.0987231559297251 -197801,0.0470403872453736,0.0644,0.129339057164307,0.00444079,0.0922038419480239 -197802,0.0484893185113683,0.0645,0.138827425985482,0.013631273,0.11521485883633 -197803,0.0489830060815238,0.0629,0.139045184922963,0.006915016,0.104395678448077 -197804,0.0491225543481276,0.0629,0.100237295010496,0.006995976,0.104952825549401 -197901,0.0511549337686618,0.0935,0.0208035395233326,0.001784946,0.0663656047954971 -197902,0.0508512561339812,0.0932,0.0111574965788912,0.004303872,0.0710763518178869 -197903,0.0507528225233245,0.0948,-0.0166563830087978,0.006291217,0.0731796779526639 -197904,0.0513213193151607,0.0946,-0.00613643735343183,0.005172593,0.072660779995055 -198001,0.0515216624713932,0.12,0.0247400625771699,0.005551196,0.0462523255707995 -198002,0.0510340428298784,0.1286,0.0376004319678256,-0.013591904,-0.00424741332773023 -198003,0.0515617031634157,0.152,0.103090629769648,-0.016861347,-0.0351318349933684 -198004,0.0518442582028578,0.132,0.111997942462514,-0.012252971,-0.00292369152904895 -198101,0.0477105999751177,0.1502,0.0217296280143886,-0.000656473,-0.0102586377239826 -198102,0.0472390967085149,0.1479,0.00181678279157271,-0.002968948,-0.0138611248012841 -198103,0.0467178030561748,0.1336,-0.00639481956761356,-0.005012755,-0.0039329647052285 -198104,0.0461484927075865,0.1369,-0.00056251358349968,-0.018003848,-0.0360971096578331 -198201,0.047621919492213,0.1228,0.0964090436000729,-0.010536118,-0.00107897465637962 -198202,0.0493293815806123,0.1348,0.125569733665592,-0.010129066,-0.00858511404120856 -198203,0.0504273755428024,0.1268,0.129611161205343,-0.009341453,0.00485242025251581 -198204,0.0504051417274013,0.127,0.113392348351659,0.001620691,0.0273307286236981 -198301,0.054334571696416,0.0786,0.0873079616261392,0.001407171,0.0907265262434894 -198302,0.0521255590989965,0.0811,0.102851885484558,0.009525456,0.0986907572952144 -198303,0.0510291071718311,0.0835,0.110082922237482,0.019629272,0.113988314845248 -198304,0.0504867758796362,0.0821,0.0798396176757434,0.022546142,0.120061776669356 -198401,0.0402661928167683,0.089,0.137475523373395,0.01920593,0.077092637917725 -198402,0.0394590934704041,0.0909,0.173336252332096,0.022594949,0.0798024521965501 -198403,0.039840454429322,0.0952,0.17857368414452,0.018463237,0.0675893781436793 -198404,0.0403402980370102,0.0969,0.171981821710548,0.020343021,0.0710281401346039 -198501,0.0437785351644467,0.0776,0.0776049939310044,0.035196616,0.132539944333949 -198502,0.043242720450722,0.0827,0.0903005360043643,0.024499652,0.103265342454712 -198503,0.0430988392508497,0.0852,0.0850360088732933,0.04183229,0.136117391348908 -198504,0.0431431405331655,0.0795,0.0913816554094593,0.029125732,0.116088496607621 -198601,0.0389000583167243,0.0707,0.0738942690797737,0.022771886,0.100682512358721 -198602,0.0383445139896593,0.0706,0.0408095949761631,0.017067207,0.0873992569586973 -198603,0.0375254395304934,0.0656,0.0288927205062337,0.027325011,0.111875380654162 -198604,0.0374935182573745,0.0606,0.0494023651594953,0.021211805,0.104557777090311 -198701,0.0333294504703391,0.0543,0.0144849167054759,0.007796727,0.0719804597266016 -198702,0.0325528543214645,0.0559,0.00205079410135212,0.025258639,0.104320250217909 -198703,0.0325463348731633,0.0559,0.00139829870948671,0.021948048,0.0974288599897444 -198704,0.0327385562944684,0.0564,-0.00279511141368394,0.02035166,0.0941041504954885 -198801,0.0326950788726818,0.0581,0.0512784362521324,0.0244132,0.10055772807933 -198802,0.0349234819569352,0.0566,0.0591227555690028,0.018659534,0.0964641725935412 -198803,0.035266493781447,0.057,0.0761245556543548,0.022300122,0.104541771635358 -198804,0.0351135387258204,0.0591,0.0737851518950918,0.023521022,0.104355532324735 -198901,0.0413744878095797,0.0827,0.0764770055965554,0.022297344,0.0934843924806671 -198902,0.039677492741945,0.0853,0.08900641767259,0.026676691,0.095004358474637 -198903,0.0397228253409198,0.0882,0.0724971759416639,0.024340993,0.0871128818479614 -198904,0.0397886696307462,0.0865,0.0615992217114592,0.018987378,0.0780391492644659 -199001,0.0348446362214279,0.0764,0.0872871384282876,0.023154046,0.0839412725744131 -199002,0.0349407442953082,0.0774,0.0847488792100579,0.018641932,0.0737488539430378 -199003,0.0346278233854251,0.079,0.0856787701052506,0.029146169,0.0929363508282301 -199004,0.0351459179191807,0.0777,0.0890670260149438,0.023433537,0.0839410806712705 -199101,0.0364909906042412,0.0622,0.129502409008131,0.009401295,0.0754943423421341 -199102,0.0363284957133145,0.0594,0.092842239694229,0.01121824,0.08187290578639 -199103,0.0360123935239196,0.0591,0.0650827725762568,0.010833146,0.0805198928399897 -199104,0.0357761344415821,0.0565,0.0689019636761747,-0.003085985,0.0538041490061633 -199201,0.0303470424514033,0.038,0.0380285739130228,-0.001607785,0.0619504839502538 -199202,0.0296016993930297,0.0384,0.0460444315358757,-0.001785133,0.0590671976337984 -199203,0.029775988783822,0.0404,0.0637924299288661,0.003543874,0.0684315470671352 -199204,0.029161728359763,0.0375,0.0682590357562942,0.008274394,0.0797087994592784 -199301,0.0276437388994999,0.03,0.109639853928239,0.007972312,0.0830442461162833 -199302,0.0273753129071636,0.0293,0.112587941588281,0.013835014,0.0952324415242554 -199303,0.0274212113045772,0.0295,0.107111442495542,0.018501155,0.104829389854721 -199304,0.0272522241364197,0.0287,0.126446215034468,0.020335099,0.109039865722124 -199401,0.0256939859149916,0.0298,0.137212156960081,0.02901429,0.121512678892551 -199402,0.0255596966435273,0.0325,0.145489634574989,0.028091141,0.116271574256635 -199403,0.0253718026889765,0.035,0.145672024310562,0.031220071,0.119512185041045 -199404,0.0254527645983689,0.0368,0.158004548859599,0.031979031,0.119346856329445 -199501,0.0263468779194327,0.0571,0.230604640792382,0.024243013,0.0835981106691384 -199502,0.0262027762253157,0.0577,0.244220273752323,0.027573572,0.0894554381900568 -199503,0.026134354988406,0.0573,0.254863224957284,0.025775226,0.085968135844827 -199504,0.026113226176634,0.0565,0.248959124962406,0.026728157,0.0887617475234709 -199601,0.0235834350929694,0.05,0.200113551377747,0.025622442,0.0865151832509582 -199602,0.0231847224785404,0.0483,0.17702640947273,0.027487219,0.091132568285887 -199603,0.0227375294445726,0.0496,0.188213524823256,0.026370129,0.0861461297623556 -199604,0.022530326788953,0.0495,0.198212292608126,0.030863757,0.0950070593002141 -199701,0.0200323292311045,0.0503,0.173292155264978,0.032053288,0.0896380941532532 -199702,0.0196736744997328,0.0501,0.185459324363413,0.017952815,0.0595822842293424 -199703,0.0197179215892745,0.0514,0.226776213443,0.017702389,0.0577652980357671 -199704,0.0196693964017317,0.0516,0.184319478413282,0.016068651,0.0540196300357122 -199801,0.0167390553956587,0.0504,0.0708702195784121,-0.001197769,0.011313626314598 -199802,0.0163981956468204,0.0509,0.00587630533427963,0.002405112,0.0172970275066738 -199803,0.0158556135621491,0.0503,-0.0360392483627068,0.014950352,0.0424854163083576 -199804,0.015676551095275,0.0495,-0.0114121627501222,0.004770242,0.0217250765436369 -199901,0.0144814295259761,0.0434,-0.0683339334308187,-0.000294038,0.0145440535793045 -199902,0.0143090405823458,0.0444,-0.0630305335654549,0.00435737,0.0226277126625035 -199903,0.0143405232438358,0.0444,-0.059411234641064,0.01210938,0.0388096595124767 -199904,0.0141299466499881,0.0429,-0.0903532327183455,-0.003013774,0.00846390851758376 -200001,0.0129961264987269,0.0532,-0.177486605753926,-0.008913269,-0.0181995072117348 -200002,0.0128306373240103,0.0555,-0.190163321831619,-0.000734884,-0.00419458371713142 -200003,0.0125337335411665,0.0569,-0.200282709615165,-0.003131727,-0.0115282086569602 -200004,0.012591845860272,0.0566,-0.158928322584084,0.011924126,0.0202194941319994 -200101,0.0112578865522286,0.0515,-0.0484413500910134,0.015450696,0.0293944613978595 -200102,0.0114100581491096,0.0488,-0.00778181982689796,0.011814846,0.0252203524921057 -200103,0.0115059479913705,0.0442,0.014857934585645,0.008715752,0.0240797185929963 -200104,0.0115942600024322,0.0387,-0.0196377786421292,0.018847405,0.0513700701651803 -200201,0.0136812603106086,0.0165,0.0431076504824983,0.000721509,0.0438135739858472 -200202,0.0138610466895884,0.0172,0.0586157766818067,0.008108901,0.0588871532622519 -200203,0.0137588900057899,0.0179,0.0368367252228277,0.025250542,0.0934257478110871 -200204,0.0137821172885179,0.0171,0.0456964107047744,0.021793208,0.0871867463758538 -200301,0.0165527999081915,0.0117,0.180431160925209,0.025375429,0.108248878009648 -200302,0.0170197559924967,0.0117,0.184946861084575,0.013072913,0.084009152270915 -200303,0.0175067126772454,0.0113,0.187869651489375,0.01078192,0.0810474573355358 -200304,0.0180320256323542,0.0113,0.160390384859626,0.004045023,0.0685253746660711 -200401,0.0177718398564348,0.0088,0.0901612831685799,-0.000580633,0.0609281113343209 -200402,0.0173720864185431,0.0093,0.0778961276276027,-0.007059009,0.0458173259573301 -200403,0.0173031398894564,0.0094,0.0859898168419429,-0.007663768,0.0442602798567384 -200404,0.0172156830484293,0.0094,0.10848213259375,-0.009227707,0.0407695091659961 -200501,0.0192736126936636,0.0233,0.0471563808748539,-0.005667035,0.0387117878944119 -200502,0.0196137518734737,0.0254,0.0314758127450017,-0.004489698,0.039809863977284 -200503,0.0199452274958486,0.0274,0.0343071130107064,-0.004428843,0.0386750892045024 -200504,0.0199855783655234,0.0278,0.0605264189406032,-0.007859664,0.0312277056742929 -200601,0.0184750078448584,0.0424,-0.155478857082191,-0.02014197,-0.0144359873452237 -200602,0.0185987878333952,0.0443,-0.184171517003988,-0.011287754,0.0022155932002081 -200603,0.018371117849624,0.0451,-0.163746782474996,-0.00743754,0.00870027334172241 -200604,0.0184041436570087,0.046,-0.13684992276182,-0.015704402,-0.00935409718283291 -200701,0.0188208214129466,0.0498,-0.0843095457579262,-0.023348222,-0.0282139765832369 -200702,0.0189254299755447,0.0503,-0.0676679654669013,-0.016337918,-0.0139143501574004 -200703,0.0189423651353736,0.0494,-0.0500487461050242,-0.010609077,-0.000989946241451287 -200704,0.018801550837406,0.0487,-0.0555853220855459,-0.003443059,0.0142598855312116 -200801,0.019441222120112,0.0275,0.00627043904276392,0.003889482,0.0544305624035247 -200802,0.0194049961854164,0.0212,0.0267986215937781,-0.009554972,0.0333007724393872 -200803,0.0197124109673598,0.0126,0.0329154588552374,0.01848986,0.101779239769953 -200804,0.0196577148981871,0.0129,0.0259989443918609,0.012678682,0.0892341990840244 -200901,0.0241948221895367,0.0013,0.203231677298922,0.010884289,0.110832983457312 -200902,0.025795638974274,0.003,0.2631978153692,-0.012382822,0.0651330863448992 -200903,0.0270727657520087,0.0021,0.238538189244968,-0.005200904,0.0845877080310545 -200904,0.0274788743388603,0.0016,0.193717827015612,-0.007043664,0.0824404602509268 -201001,0.0245648608240395,6e-04,0.137648837881743,-0.006705542,0.0761107495616637 -201002,0.0229984881270686,0.0011,0.127824082229511,-0.004120902,0.0765633935072562 -201003,0.0215495972350554,0.0015,0.117769576402331,-0.007853384,0.0643376833693894 -201004,0.020972630143447,0.0016,0.115871081288574,-0.007991569,0.0623329323290496 -201101,0.0213434266746334,0.0015,0.123919048758371,-0.01288464,0.053317338915787 -201102,0.0211850243532811,0.0013,0.126787522600043,-0.004873942,0.0697254797272708 -201103,0.0211802712171474,0.001,0.127284031990848,0.010090533,0.101108199703162 -201104,0.0211727519309622,6e-04,0.117371277018052,0.012108104,0.10571302916825 -201201,0.0211658586732192,3e-04,0.154390044302511,-0.000895883,0.0790236484267843 -201202,0.0214942618614368,9e-04,0.159744823319373,-0.001858043,0.0772860919223373 -201203,0.0217604231538474,8e-04,0.146605644044365,-0.006244276,0.069031034165439 -201204,0.0219061170123271,8e-04,0.152609462957521,-0.017425398,0.0462237806904129 -201301,0.0252021807564931,7e-04,0.0819983397259792,0.001312162,0.0944241353803307 -201302,0.0252060875495074,0.001,0.0791105080473253,-0.009971338,0.0706812345905963 -201303,0.0250681236840484,9e-04,0.0911684364904197,-0.016509419,0.0568319528631174 -201304,0.0249994797905416,6e-04,0.0900772496515472,-0.018592692,0.0526432205953193 -201401,0.0216405776417744,4e-04,0.0875275170374201,-0.023218232,0.0338938363334556 -201402,0.021590056740278,5e-04,0.0825257245573758,-0.024412266,0.0311647504015807 -201403,0.021594276610221,5e-04,0.0815669234019389,-0.022332177,0.0354950485123565 -201404,0.0215977298744457,3e-04,0.0844144651466634,-0.027475502,0.0250449981994929 -201501,0.0209092721050217,3e-04,0.126323506372446,-0.034622307,0.00828787362706267 -201502,0.0209877006284761,2e-04,0.0907293442922747,-0.034629428,0.0086010139509312 -201503,0.0211160835567631,3e-04,0.0873460063801046,-0.02656083,0.0256011344826058 -201504,0.0210913731078685,2e-04,0.0856543815657862,-0.035191286,0.00772356548424264 +195203,0.0581713806310763,0.0159,0.180929532251361,0.016465442,0.207727996033382 +195206,0.0573964934479785,0.017,0.216421730627215,0.025517831,0.224814273510517 +195209,0.0570910257822821,0.0171,0.231932767702911,0.016336205,0.202990900431671 +195212,0.0552219085744655,0.0209,0.222027292168553,0.025420057,0.21393693420467 +195303,0.0545504244369111,0.0201,0.260587223971332,0.025433872,0.212987812669779 +195306,0.0545861415414667,0.0211,0.272693155990075,0.020293056,0.200266705100707 +195309,0.0555092571041784,0.0179,0.266241082611581,0.019145117,0.203963916441668 +195312,0.0569810782587777,0.016,0.253071367770915,0.015786553,0.202699332343955 +195403,0.056836429875606,0.0103,0.196594741462133,0.020888805,0.220440663737267 +195406,0.0551750186988201,0.0064,0.190919921278285,0.026069547,0.231988583179857 +195409,0.0525378890011501,0.0101,0.114099126177687,0.026467811,0.221157294138974 +195412,0.0491647188147988,0.0115,0.0445218517475148,0.026721624,0.210563348108774 +195503,0.0464351569511314,0.0128,0.0538608706994908,0.036556615,0.22365778131479 +195506,0.0442389561942873,0.0141,0.0452056086669617,0.029382724,0.199652403687449 +195509,0.042320637419308,0.0207,0.0776450308388892,0.021232813,0.168110862607569 +195512,0.0416058854413551,0.0254,0.0954965679309081,0.020523432,0.159059146767136 +195603,0.0410553744034771,0.0225,0.0761698431974343,0.007713701,0.131762837301258 +195606,0.0412049431061539,0.0249,0.100300323080917,0.001744495,0.115870416298633 +195609,0.0411739715028009,0.0284,0.102263922491475,0.001832813,0.111949676244946 +195612,0.0403092920407171,0.0321,0.107072354072605,-0.001335726,0.0980432183599684 +195703,0.041502794604927,0.0308,0.0911975128943467,0.00339647,0.113665039879671 +195706,0.0415334174101718,0.0329,0.0782252698539541,-0.003867536,0.0948421004932079 +195709,0.0424290805458711,0.0353,0.0975414279413929,0.00490717,0.114532807917532 +195712,0.0432942579316379,0.0304,0.154203787514524,0.007711104,0.128995914054636 +195803,0.0439815664307764,0.013,0.179254470012994,0.005998902,0.147108543128081 +195806,0.044497181630577,0.0083,0.146035719859805,0.005183657,0.152135105418994 +195809,0.0433934076521585,0.0244,0.115947757146269,-0.005604405,0.105964566830394 +195812,0.0395606643661946,0.0277,0.102202769836565,-0.008257894,0.0852792726360102 +195903,0.0365289954269653,0.028,0.0847294324818499,0.000662285,0.0965935481180015 +195906,0.0342102316842738,0.0321,-0.0203207371792191,-0.000131677,0.0834968657025724 +195909,0.0328837588962881,0.0404,0.00039426689841271,0.014178326,0.102657987194667 +195912,0.0327954311325093,0.0449,0.0210990293398392,0.007738833,0.0826039090200348 +196003,0.0332730977456775,0.0331,0.0680967522149993,0.005221836,0.0918421044267311 +196006,0.0339978681291371,0.0246,0.0711063949084174,0.011585551,0.118136994750685 +196009,0.0346393964085621,0.0248,0.103832381058482,0.009399733,0.114762158178117 +196012,0.0347618331131123,0.0225,0.0855638142660886,0.006348754,0.110833756217071 +196103,0.033682930604447,0.0239,0.0594052751881322,-0.005321467,0.0796717519760903 +196106,0.0323191356260007,0.0233,0.071037935148369,-0.006330947,0.0742077960959936 +196109,0.030886919891069,0.0228,0.0711031465229972,-0.014107274,0.0530737123214072 +196112,0.0295735387197417,0.026,0.0495104470604209,-0.013516911,0.0470050952452525 +196203,0.0292542603363362,0.0272,0.0692992845659701,-0.011333983,0.0496729646516795 +196206,0.0305677336064767,0.0273,0.150365583612118,0.004442257,0.0890917540101758 +196209,0.0320842468178985,0.0278,0.166720757193933,0.005495361,0.0952026552757794 +196212,0.034357085181072,0.0287,0.136873526246216,0.002257557,0.0932548266261249 +196303,0.0351003938894386,0.0289,0.105351263735985,-0.002865398,0.0835009204469971 +196306,0.0343828042385159,0.0299,0.0710119032971885,-0.004627073,0.0763163744276158 +196309,0.033121245655773,0.0338,0.0206366997388234,-0.002128803,0.0739189156238894 +196312,0.0323477713364893,0.0352,0.0266785788867785,-0.003280283,0.0675002399605308 +196403,0.031759291322847,0.0354,0.0526435900742601,-0.002650558,0.0670320024267444 +196406,0.0314773247785952,0.0348,0.0485501552073446,-0.009752038,0.0508039298658777 +196409,0.0313102650407029,0.0353,0.0619661255000819,-0.005761464,0.0588131898385105 +196412,0.0306132138641391,0.0384,0.0603395497649675,-0.014444917,0.0335540064788121 +196503,0.0304150800505866,0.0393,0.0228091536101451,-0.004525471,0.0544730587233135 +196506,0.0305318677485754,0.038,0.0774540378285802,0.000414293,0.0675155662432927 +196509,0.0305931101604307,0.0392,0.0613826975841563,-0.011596207,0.0390418080137689 +196512,0.0305599791908958,0.0438,0.0551766205336706,-0.006742255,0.0446654832975762 +196603,0.030783599975638,0.0459,0.048708194942642,0.00580688,0.071366034881783 +196606,0.0312674337996003,0.045,0.0458341035059451,-0.001231731,0.0577960372251608 +196609,0.032773524210845,0.0537,0.0657186525012383,0.002559774,0.060643835614009 +196612,0.0338890636539919,0.0496,0.0409349350184802,-0.010629308,0.0385894725083683 +196703,0.0344368333870317,0.0426,-0.0186109941464203,-0.024489963,0.0167440533956831 +196706,0.0340002271270961,0.0354,-0.105839218832583,-0.020558797,0.0327284393365381 +196709,0.0325214824995494,0.0442,-0.079047001112438,-0.027978763,0.00155395875290845 +196712,0.0307930472103615,0.0497,-0.0551099479018757,-0.034737055,-0.0250229118939824 +196803,0.0306503240878144,0.0517,0.0062696448580386,-0.024159319,-0.00372018996444398 +196806,0.0303116110092362,0.0552,-0.0372465022977169,-0.032152456,-0.0268580665895572 +196809,0.0300666169355094,0.0519,-0.0513566067503131,-0.019056095,0.00598013331887556 +196812,0.0292824485824744,0.0596,-0.0465129089685465,-0.0314476,-0.0332444500354112 +196903,0.0286007883374296,0.0602,-0.0107937706839798,-0.02064361,-0.0113416238521367 +196906,0.029034568812731,0.0644,0.0069519580011379,-0.019709664,-0.0128327313166554 +196909,0.0298679273692988,0.0709,0.0317501891176857,-0.029871379,-0.0410299789338302 +196912,0.0309257170688978,0.0782,0.05818930759085,-0.026299811,-0.0383381621951218 +197003,0.0320562287254379,0.0663,0.0401370039109226,-0.02606305,-0.0208839607309172 +197006,0.034113306096379,0.0668,0.0939516000505951,-0.024923509,-0.013045340466058 +197009,0.0354730616471907,0.0612,0.0601492482164803,-0.031320803,-0.0172615113116111 +197012,0.0360208688491167,0.0487,-0.0157125224959915,-0.03582528,-0.0115295675198953 +197103,0.035348123314701,0.0338,-0.0611257772726066,-0.04100823,-0.00802999114417641 +197106,0.0328778666086917,0.0475,-0.101254451195637,-0.046916453,-0.0442287282032726 +197109,0.0310893969776371,0.0469,-0.188125750820017,-0.043619693,-0.0411205008220184 +197112,0.0299986822036038,0.0401,-0.179412889579235,-0.040591807,-0.0295007612044223 +197203,0.029219856887389,0.0373,-0.136373174429339,-0.040636151,-0.0285811758684796 +197206,0.0286540748180313,0.0391,-0.0907075781177714,-0.033364191,-0.0157508181761327 +197209,0.0278743534004712,0.0466,-0.138941761091134,-0.031477741,-0.0223207353393198 +197212,0.02699699061614,0.0507,-0.138674410428226,-0.047133812,-0.0650713402882327 +197303,0.0268259739761796,0.0609,-0.0637272576536563,-0.034177498,-0.0478991657468782 +197306,0.0276052758957876,0.0719,-0.0251312210743393,-0.035712602,-0.0618526804736062 +197309,0.028390482997541,0.0829,-0.0446857717630251,-0.037736915,-0.076899990735583 +197312,0.0308172320831128,0.0745,0.0147579549515353,-0.036300172,-0.0570828115944468 +197403,0.0328202165665916,0.0796,0.00119638056991866,-0.029528202,-0.0419127275872259 +197406,0.0353977102785159,0.079,0.0612037473955862,-0.017242602,-0.00602997957389967 +197409,0.0407072394032137,0.0806,0.163665614755192,-0.00362426,0.0380831075882301 +197412,0.0452572062508835,0.0715,0.136837829400966,-0.017182557,0.0306829948465967 +197503,0.0478542021372892,0.0549,0.0419109094756205,-0.016113014,0.0595988134440498 +197506,0.047599118645957,0.0534,0.0204348793135738,-0.045009185,-0.00499081765327533 +197509,0.0453430844112398,0.0642,0.0989760622815075,-0.013775729,0.047072633296917 +197512,0.0420280669091112,0.0544,0.04484531267213,-0.0128038,0.0511807284659726 +197603,0.0401391807499351,0.05,0.0173208165885408,-0.010228867,0.0567450862294911 +197606,0.0400356356996448,0.0541,0.0196983444356877,-0.010633726,0.0508077473829504 +197609,0.0393666696289032,0.0508,0.0394218187846971,-0.006595377,0.0618826842461818 +197612,0.039817310842416,0.0435,0.0239626322262079,-0.000572058,0.0852453028597331 +197703,0.0412761952784178,0.046,0.0171040336151946,0.010392845,0.111388305574353 +197706,0.043012662308755,0.0502,0.046287114960432,0.004378317,0.0978145737272982 +197709,0.0445467299241047,0.0581,0.100273479858332,0.001528312,0.0865870554211208 +197712,0.046625262412592,0.0607,0.125419842581055,0.005165188,0.0977354341575684 +197803,0.0489830060815238,0.0629,0.139045184922963,0.00444079,0.100235548119543 +197806,0.0499091661873586,0.0673,0.0925869796487433,0.013631273,0.118651645466702 +197809,0.0498665955719646,0.0785,0.00249723751125863,0.006915016,0.0903777080877918 +197812,0.0508761294213427,0.0908,0.0506171332271967,0.006995976,0.0792468635200177 +197903,0.0507528225233245,0.0948,-0.0166563830087978,0.001784946,0.0624585599386938 +197906,0.0516518008766985,0.0906,-0.0379421015197754,0.004303872,0.0755637532219006 +197909,0.0522544159019993,0.1026,-0.0301909155379363,0.006291217,0.067953347784869 +197912,0.0517637769730003,0.1204,0.0329312983190684,0.005172593,0.0435108466240525 +198003,0.0515617031634157,0.152,0.103090629769648,0.005551196,0.00738123766953776 +198006,0.0511064018607083,0.0707,0.0988554350292474,-0.013591904,0.0563275627367211 +198009,0.0507597698084478,0.1027,0.0451399240261712,-0.016861347,0.011046204496993 +198012,0.04807969287501,0.1549,0.0102433335164709,-0.012252971,-0.0462421081203294 +198103,0.0467178030561748,0.1336,-0.00639481956761356,-0.000656473,0.000770598924634807 +198106,0.0451090466816692,0.1473,-0.0105068509357014,-0.002968948,-0.0248248669328352 +198109,0.0459712231735533,0.147,0.0740812468861567,-0.005012755,-0.0266759900591949 +198112,0.0476867923779808,0.1085,0.0535032912087947,-0.018003848,-0.0069376006844739 +198203,0.0504273755428024,0.1268,0.129611161205343,-0.010536118,-0.00331035355436251 +198206,0.0535520225751262,0.1247,0.165918936517383,-0.010129066,0.00888637546981789 +198209,0.0550504245424751,0.0792,0.107560018285298,-0.009341453,0.0673547184106282 +198212,0.0540647617061919,0.0794,0.0985065180914657,0.001620691,0.0892162429304807 +198303,0.0510291071718311,0.0835,0.110082922237482,0.001407171,0.0754061249748991 +198306,0.0461404885501856,0.0879,0.0855582067622382,0.009525456,0.0749141038713654 +198309,0.041988306807709,0.09,0.0618663743717594,0.019629272,0.0836663379710171 +198312,0.0404019529503302,0.09,0.0828130142049668,0.022546142,0.0857933707439082 +198403,0.039840454429322,0.0952,0.17857368414452,0.01920593,0.070627533309255 +198406,0.0418218542006439,0.0987,0.206665952093648,0.022594949,0.079900893402247 +198409,0.0425727910143084,0.1037,0.198442726741484,0.018463237,0.0668871363800868 +198412,0.0436085752722986,0.0806,0.0906963655972701,0.020343021,0.100709825116976 +198503,0.0430988392508497,0.0852,0.0850360088732933,0.035196616,0.127682830709145 +198506,0.0412990468278449,0.0695,0.0845085021251242,0.024499652,0.116394190871962 +198509,0.0407463713227804,0.071,0.102824078665793,0.04183229,0.152445587688709 +198512,0.0391411362083553,0.071,0.0530609660536781,0.029125732,0.119053261440416 +198603,0.0375254395304934,0.0656,0.0288927205062337,0.022771886,0.10627531115669 +198606,0.0358395368016161,0.0621,0.0361552779858427,0.017067207,0.0925824910643015 +198609,0.0339451184110739,0.0521,0.100430805221419,0.027325011,0.122025193998318 +198612,0.0337564311457354,0.0553,0.086594747761106,0.021211805,0.103925616459724 +198703,0.0325463348731633,0.0559,0.00139829870948671,0.007796727,0.0693529558077948 +198706,0.0322367413567112,0.0567,0.00720524631796393,0.025258639,0.107193195414701 +198709,0.031484823398895,0.064,-0.0707688963519937,0.021948048,0.0891350237378343 +198712,0.0323215500391679,0.0577,0.0496669327056005,0.02035166,0.0951419922275247 +198803,0.035266493781447,0.057,0.0761245556543548,0.0244132,0.113512049972623 +198806,0.0364072767585371,0.0646,0.0519017174325123,0.018659534,0.0949245836159041 +198809,0.0391710567768338,0.0724,0.0755431025728526,0.022300122,0.102030206288856 +198812,0.0404684904451033,0.0807,0.100201846747253,0.023521022,0.0989124304107605 +198903,0.0397228253409198,0.0882,0.0724971759416639,0.022297344,0.0853788734348419 +198906,0.0400751327789234,0.0815,0.0462709869321822,0.026676691,0.104039555171544 +198909,0.0386570991781522,0.0775,0.0264796861568846,0.024340993,0.099329595957029 +198912,0.0355200152706795,0.0763,0.0532045452654633,0.018987378,0.079671710654185 +199003,0.0346278233854251,0.079,0.0856787701052506,0.023154046,0.0834909691163986 +199006,0.0344501002221574,0.0773,0.073419416151379,0.018641932,0.0747038732309502 +199009,0.0348820260617146,0.0736,0.154589587508744,0.029146169,0.104036627655736 +199012,0.036463636724332,0.0674,0.134196482649538,0.023433537,0.102694673354516 +199103,0.0360123935239196,0.0591,0.0650827725762568,0.009401295,0.0791275326882394 +199106,0.035029616911794,0.0557,0.0642208856279274,0.01121824,0.0843859528856018 +199109,0.0334442117414475,0.0522,0.0625355125813156,0.010833146,0.0830535489788925 +199112,0.0309336843950589,0.0407,0.0298251972975712,-0.003085985,0.0575966512289779 +199203,0.029775988783822,0.0404,0.0637924299288661,-0.001607785,0.0580180230272565 +199206,0.0289233014726288,0.0366,0.0953712237070097,-0.001785133,0.0595788432087456 +199209,0.028463377374888,0.0291,0.114642563095728,0.003543874,0.0790160530251242 +199212,0.0277778191129416,0.0322,0.104107269978809,0.008274394,0.0842397367856537 +199303,0.0274212113045772,0.0295,0.107111442495542,0.007972312,0.0856552119012719 +199306,0.0268524456290475,0.0307,0.118705294333409,0.013835014,0.0959694926532743 +199309,0.0261422955188591,0.0295,0.113037270205791,0.018501155,0.105932776964727 +199312,0.0256456144025025,0.0306,0.129242093624025,0.020335099,0.107421069828503 +199403,0.0253718026889765,0.035,0.145672024310562,0.02901429,0.121276803188092 +199406,0.0255023478479724,0.0414,0.211195651233096,0.028091141,0.112175566216183 +199409,0.0255256915021264,0.0462,0.227587943756161,0.031220071,0.113812883057182 +199412,0.0261186471093076,0.056,0.237393552839665,0.031979031,0.105921952504239 +199503,0.026134354988406,0.0573,0.254863224957284,0.024243013,0.0869072067969094 +199506,0.0254539034968339,0.0547,0.224179828130111,0.027573572,0.0955361937033821 +199509,0.0251759405452912,0.0528,0.135014324737973,0.025775226,0.0928559593716876 +199512,0.023878267110137,0.0514,0.195308086604209,0.026728157,0.0929560329985798 +199603,0.0227375294445726,0.0496,0.188213524823256,0.025622442,0.089288482747868 +199606,0.0216957241478264,0.0509,0.202455004533797,0.027487219,0.0890718609121885 +199609,0.0209196074057496,0.0509,0.16483833748688,0.026370129,0.084337156998913 +199612,0.0202907938427,0.0491,0.210997235688284,0.030863757,0.0948307219038149 +199703,0.0197179215892745,0.0514,0.226776213443,0.032053288,0.0932574007168054 +199706,0.0189711006157379,0.0493,0.142281994589192,0.017952815,0.061552935597675 +199709,0.0177582595721872,0.0495,0.105810423621505,0.017702389,0.057317803836626 +199712,0.0168952082617453,0.0516,0.0577376412131978,0.016068651,0.0487439000362709 +199803,0.0158556135621491,0.0503,-0.0360392483627068,-0.001197769,0.00810118474993602 +199806,0.0151139028221475,0.0498,-0.01606719183358,0.002405112,0.0147547104221446 +199809,0.0151395677946427,0.0461,-0.0290739512146452,0.014950352,0.0475696301094841 +199812,0.0145884936723015,0.0439,-0.0516342985438699,0.004770242,0.0254343844426755 +199903,0.0143405232438358,0.0444,-0.059411234641064,-0.000294038,0.0126594967692101 +199906,0.0143810008432541,0.0457,-0.124091395861446,0.00435737,0.0218349268338385 +199909,0.0136974470935095,0.0468,-0.157001532647295,0.01210938,0.0362280490305851 +199912,0.0130992025970143,0.052,-0.18339739943897,-0.003013774,-0.00578968964886001 +200003,0.0125337335411665,0.0569,-0.200282709615165,-0.008913269,-0.0264307339550561 +200006,0.0117909363157554,0.0569,-0.136619911171274,-0.000734884,-0.00996990329509896 +200009,0.0110866721863991,0.06,-0.121743417974827,-0.003131727,-0.0209786421967168 +200012,0.011166134091661,0.0577,-0.0447624473646674,0.011924126,0.0160745027210915 +200103,0.0115059479913705,0.0442,0.014857934585645,0.015450696,0.0406004194224382 +200106,0.0117929296119843,0.0349,-0.00353442308640783,0.011814846,0.0438774730176375 +200109,0.0128882289788122,0.0264,0.0537027085180462,0.008715752,0.0497411395379355 +200112,0.0134662680856255,0.0169,0.0468356294017183,0.018847405,0.0853261236773846 +200203,0.0137588900057899,0.0179,0.0368367252228277,0.000721509,0.0438561678266455 +200206,0.0144460149221045,0.017,0.0926741306045797,0.008108901,0.0636097840732361 +200209,0.0152142875759594,0.0163,0.179422069254788,0.025250542,0.105505392344531 +200212,0.0162789908477815,0.0119,0.156227681248079,0.021793208,0.105744223044838 +200303,0.0175067126772454,0.0113,0.187869651489375,0.025375429,0.118045803860976 +200306,0.0183402190579842,0.0092,0.116212393678878,0.013072913,0.0949000956130146 +200309,0.0181484128067515,0.0094,0.114420961682786,0.01078192,0.0889255394841496 +200312,0.0180152456219789,0.009,0.0928008294527125,0.004045023,0.0737161737872115 +200403,0.0173031398894564,0.0094,0.0859898168419429,-0.000580633,0.0607372557671196 +200406,0.0172910481691703,0.0127,0.10200994405036,-0.007059009,0.0421938070399615 +200409,0.017234824577087,0.0165,0.112418213829528,-0.007663768,0.0362824822883443 +200412,0.0193992694118347,0.0219,0.0621765158868279,-0.009227707,0.0326414038092299 +200503,0.0199452274958486,0.0274,0.0343071130107064,-0.005667035,0.0359327470374738 +200506,0.0201414214956309,0.0297,0.0243229370787343,-0.004489698,0.0365106305079025 +200509,0.0200785526865074,0.0342,-0.0276295228239516,-0.004428843,0.031284756056331 +200512,0.0182852466195617,0.0389,-0.119573155671253,-0.007859664,0.0129995390360112 +200603,0.018371117849624,0.0451,-0.163746782474996,-0.02014197,-0.0217835653406134 +200606,0.0186028123836435,0.0479,-0.104760616105903,-0.011287754,-0.0042544630972274 +200609,0.0188259061082708,0.0481,-0.0658395628188288,-0.00743754,0.00488726632849967 +200612,0.018969404560733,0.0485,-0.0668717960342877,-0.015704402,-0.0139332875666801 +200703,0.0189423651353736,0.0494,-0.0500487461050242,-0.023348222,-0.0323988806550267 +200706,0.01885125598955,0.0461,-0.10154153530552,-0.016337918,-0.0129403163575116 +200709,0.0189134354818131,0.0389,-0.0693021156317818,-0.010609077,0.00853800895515592 +200712,0.0191751372568305,0.03,-0.0221083758061815,-0.003443059,0.0358031850148508 +200803,0.0197124109673598,0.0126,0.0329154588552374,0.003889482,0.0740227044810544 +200806,0.0203152943004886,0.0186,0.0349297985848813,-0.009554972,0.0382967342987564 +200809,0.0212312033641009,0.0113,0.014300554304276,0.01848986,0.112967328327867 +200812,0.0238541635562007,3e-04,0.150965250068942,0.012678682,0.119883604645674 +200903,0.0270727657520087,0.0021,0.238538189244968,0.010884289,0.122854699585292 +200906,0.0276856744039459,0.0018,0.157377828536064,-0.012382822,0.0721195323917565 +200909,0.0273313735126504,0.0012,0.122690176474383,-0.005200904,0.0881104639513008 +200912,0.0250347285573224,5e-04,0.10383653913252,-0.007043664,0.0782272576318151 +201003,0.0215495972350554,0.0015,0.117769576402331,-0.006705542,0.0679684621822551 +201006,0.0206348377279535,0.0012,0.168632942769818,-0.004120902,0.0715897773791307 +201009,0.0212029708896787,0.0015,0.149492821599458,-0.007853384,0.0643807636806806 +201012,0.0214621354113483,0.0014,0.142582771269884,-0.007991569,0.0649165737440417 +201103,0.0211802712171474,0.001,0.127284031990848,-0.01288464,0.0534714917790948 +201106,0.0209019141620442,4e-04,0.148031793945999,-0.004873942,0.0715589510414494 +201109,0.0206511229296865,1e-04,0.212528154023929,0.010090533,0.105164160076958 +201112,0.0210098688268682,1e-04,0.185663469111987,0.012108104,0.110760518074749 +201203,0.0217604231538474,8e-04,0.146605644044365,-0.000895883,0.0825606410572733 +201206,0.0226930661384876,9e-04,0.160765380006173,-0.001858043,0.0829035776623887 +201209,0.0230822068854468,0.0011,0.105432702750396,-0.006244276,0.0738186491721294 +201212,0.0251440511018623,7e-04,0.122931735279789,-0.017425398,0.0547395104802914 +201303,0.0250681236840484,9e-04,0.0911684364904197,0.001312162,0.0968289931031212 +201306,0.0249513924632454,5e-04,0.094823805961757,-0.009971338,0.0713452052445914 +201309,0.0246064520006413,2e-04,0.0879937533241177,-0.016509419,0.0558719313507061 +201312,0.0216455433125309,7e-04,0.068663490768504,-0.018592692,0.0421778795682073 +201403,0.021594276610221,5e-04,0.0815669234019389,-0.023218232,0.0317629391444011 +201406,0.0211228709945043,4e-04,0.0734446489565668,-0.024412266,0.0278321057349712 +201409,0.0207713854472016,2e-04,0.0914514203929016,-0.022332177,0.0317886694961807 +201412,0.0209491326978658,3e-04,0.0978776038697833,-0.027475502,0.0205014402639906 +201503,0.0211160835567631,3e-04,0.0873460063801046,-0.034622307,0.0047508780965125 +201506,0.0211154178662593,2e-04,0.0992871800438719,-0.034629428,0.00484806934781884 +201509,0.021538195525196,2e-04,0.152686174426084,-0.02656083,0.0243619355553995 +201512,0.0219127068150701,0.0023,0.0746573974748765,-0.035191286,0.00341138498129902 diff --git a/output/predict.png b/output/predict.png Binary files differ. diff --git a/readme.md b/readme.md @@ -30,21 +30,21 @@ We use the dividend-price ratio, cay and the three-month T-bill to predict futur =========================================================== Future Excess Returns ----------------------------------------------------------- -D/P ratio 2.788*** - (0.411) +D/P ratio 2.833*** + (0.419) -cay 2.076*** - (0.234) +cay 2.270*** + (0.233) -T-bill (three-month) -1.093*** - (0.151) +T-bill (three-month) -1.152*** + (0.156) -Constant 0.022* +Constant 0.024* (0.013) Observations 256 -R2 0.400 -F Statistic 56.022*** (df = 3; 252) +R2 0.423 +F Statistic 61.652*** (df = 3; 252) ----------------------------------------------------------- Notes: ***Significant at the 1 percent level. **Significant at the 5 percent level. diff --git a/src/import_predictors.R b/src/import_predictors.R @@ -63,7 +63,9 @@ dt_tbill <- dt_tbill[, .(dateym=year(date)*100+month(date), rf=rf/100)] ################################################################################## # 2. CAY dt_cay <- fread("./input/cay_current.csv", skip=1, header=T) -dt_cay <- dt_cay[, .(dateym=as.integer(str_sub(date, 1, 6)), cay=cay) ] +dt_cay <- dt_cay[, .(date_y=as.integer(str_sub(date, 1, 4)), + quarter=as.integer(str_sub(date, 5, 6)), cay=cay) ] +dt_cay <- dt_cay[, .(dateym=date_y*100+quarter*3, cay) ] dt_cay ################################################################################## @@ -113,7 +115,8 @@ dt_rmrf[ !is.na(rmrf_y3) ] dt_predict <- merge(dt_dp, dt_tbill, by = c("dateym")) dt_predict <- merge(dt_predict, dt_rmrf, by = c("dateym"), all.x = T) dt_predict <- merge(dt_predict, dt_cay, by = c("dateym"), all.x = T) -dt_predict <- dt_predict[ !is.na(rmrf_y3) & !is.na(cay) ] +dt_predict <- dt_predict[ !is.na(rmrf_y3) ] +dt_predict <- dt_predict[ !is.na(cay) ] dt_predict[] fwrite(dt_predict, "./tmp/predict.csv") diff --git a/src/rp_measure.R b/src/rp_measure.R @@ -77,7 +77,7 @@ fwrite(dt_exp_rmrf, "./output/predict.csv") ################################################################################## # PLOT dt_plot <- dt_exp_rmrf[, .( - date=as.Date(ISOdate(str_sub(dateym,1, 4), 3*as.integer(str_sub(dateym, 5, 6)), 1)), + date=as.Date(ISOdate(str_sub(dateym,1, 4), as.integer(str_sub(dateym, 5, 6)), 1)), dp, cay, rf, rmrf_y3, exp_rmrf)] dt_plot[]