I want to replicate the paper Drechsler, I., Savov, A., & Schnabl, P. (2021). Banking on deposits: Maturity transformation without interest rate risk. The Journal of Finance, 76(3), 1091-1143. and use their replication code. When I set absolute path, their replication code is shown below:
global path_BOD "/ENTER_YOUR_PROJECT_PATH_HERE/DSS_2021_JF_Replication_Kit/"
1) I wonder whether I should use “/” to be consistent with their code or I should use \ since it is shown in my path
2) I think using either / or \ is OK, however, it may affect setting relative path shown below:
local path $path_BOD
local in_dir `path'input/ // input data files
local out_dir `path'output/ // output data files
local temp_dir `path'output/_temp/ // temporary data files
local log_dir `path'code/_logs/ // log files
cd "`path'" // set working directory
My relative path seems to be invalid after I define the absolute path (no matter I use / or \) , for instance, this does not work "import excel "`in_dir'FEDFUNDS.xls", sheet("fedfunds") firstrow clear" unless I type the path instead of using `in_dir'
Banking on Deposits: Maturity Transformation without Interest Rate Risk - DRECHSLER - 2021 - The Journal of Finance - Wiley Online Library
global path_BOD "/ENTER_YOUR_PROJECT_PATH_HERE/DSS_2021_JF_Replication_Kit/"
1) I wonder whether I should use “/” to be consistent with their code or I should use \ since it is shown in my path
2) I think using either / or \ is OK, however, it may affect setting relative path shown below:
local path $path_BOD
local in_dir `path'input/ // input data files
local out_dir `path'output/ // output data files
local temp_dir `path'output/_temp/ // temporary data files
local log_dir `path'code/_logs/ // log files
cd "`path'" // set working directory
My relative path seems to be invalid after I define the absolute path (no matter I use / or \) , for instance, this does not work "import excel "`in_dir'FEDFUNDS.xls", sheet("fedfunds") firstrow clear" unless I type the path instead of using `in_dir'
Banking on Deposits: Maturity Transformation without Interest Rate Risk - DRECHSLER - 2021 - The Journal of Finance - Wiley Online Library