The related work as below.
patterncausalitypackage in CRAN.
patterncausalityofficial Github page.
patterncausalitypackage user guide.
patterncausalitypaper in SSRN
This presentation is based on Observable.js, Echarts.js, D3.js, Mermaid, tikz, pseudocode and shiny, before starting to run it, we need to make some preparations.
- Download the Quarto.
- Download the R
- Install the required R packages, including
shiny,deSolve,tidyr,dplyr,patterncausality
install.packages(c("shiny", "deSolve", "tidyr", "dplyr", "patterncausality"))The possible dependencies are
# On debian system
sudo apt install -y g++ gcc gfortran libreadline-dev libx11-dev libxt-dev \
libpng-dev libjpeg-dev libcairo2-dev xvfb \
libbz2-dev libzstd-dev liblzma-dev libtiff5 \
libssh-dev libgit2-dev libcurl4-openssl-dev \
libblas-dev liblapack-dev libopenblas-base \
zlib1g-dev openjdk-11-jdk \
texinfo texlive texlive-fonts-extra \
screen wget libpcre2-dev make cmake \
libssl-dev libxml2-dev libfontconfig1-dev libcurl4-openssl-dev \
libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff-devIf there is anything wrong, you can check the dependencies here, mostly it could be fixed.
On Linux, we usually use the systemctl daemon to manage the Quarto service.
We need to download the files at first.
git clone https://github.com/wanghui5801/pattern_causality_presentation.gitThen add the configuration file
sudo nano /etc/systemd/system/quarto_presentation.serviceThe content is as follows:
[Unit]
Description=Quarto_Server
After=network.target
[Service]
# Your user name, usually could be got by $USER
User=
# The path of pattern_causality_presentation folder
WorkingDirectory=
# The path of quarto + "quarto serve presentation.qmd --host 0.0.0.0 --port xxx" you can define the port here
ExecStart=
Restart=always
RestartSec=10
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[Install]
WantedBy=multi-user.targetThen update and start the systemctl sevice.
sudo systemctl daemon-reload
sudo systemctl start quarto_presentation.service
sudo systemctl enable quarto_presentation.service # Start automatically at boot
sudo systemctl status quarto_presentation.service # Check the status of serviceNow the quarto server is running on http://ip:port
It would be easy to run after installing the necessary dependencies by the following code.
git clone https://github.com/wanghui5801/pattern_causality_presentation.git
cd pattern_causality_presentation
quarto serve presentation.qmdRelevant information will be presented below.
-
Stavroglou, S. K., Pantelous, A. A., Stanley, H. E., & Zuev, K. M. (2019). Hidden interactions in financial markets. Proceedings of the National Academy of Sciences, 116(22), 10646-10651.
-
Stavroglou, S. K., Pantelous, A. A., Stanley, H. E., & Zuev, K. M. (2020). Unveiling causal interactions in complex systems. Proceedings of the National Academy of Sciences, 117(14), 7599-7605.
-
Stavroglou, S. K., Ayyub, B. M., Kallinterakis, V., Pantelous, A. A., & Stanley, H. E. (2021). A novel causal risk‐based decision‐making methodology: The case of coronavirus. Risk Analysis, 41(5), 814-830.
