Skip to content

Commit

Permalink
add Disc in fig, add more instructions in R tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kimmo1019 authored and kimmo1019 committed Apr 13, 2024
1 parent ea8b84a commit 7122872
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions docs/source/tutorial_r.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"\n",
"Python users can use **RcausalEGM**, a R libary for implementing CausalEGM.\n",
"\n",
"First of all, you need to install CausalEGM, please refer to the [install page](https://causalegm.readthedocs.io/en/latest/installation.html) to make sure **RcausalEGM** R package is installed.\n"
"First of all, you need to install CausalEGM, please refer to the [install page](https://causalegm.readthedocs.io/en/latest/installation.html) to make sure **RcausalEGM** R package is installed.\n",
"\n",
"The [CRAN package repository](https://cran.r-project.org/web/packages/RcausalEGM/index.html) provides an detailed [reference manual](https://cran.r-project.org/web/packages/RcausalEGM/RcausalEGM.pdf).\n"
]
},
{
Expand Down Expand Up @@ -43,7 +45,7 @@
"metadata": {},
"outputs": [],
"source": [
"#library(reticulate)\n",
"library(reticulate)\n",
"#py_config()"
]
},
Expand Down Expand Up @@ -176,6 +178,20 @@
" n_iter=200)"
]
},
{
"cell_type": "markdown",
"id": "62374c3b",
"metadata": {},
"source": [
"<div class=\"alert alert-warning\">\n",
"\n",
"**Note**\n",
"\n",
"If the above command stops with warning: `Please install the CausalEGM package using the function: install_causalegm()`. It means that `CausalEGM` is not installed in `Python`. Please run `install_causalegm()` in `R` or use command line `pip install CausalEGM` to make sure that `CausalEGM` is installed and `py_module_available('CausalEGM')` will return `True`.\n",
"\n",
"</div>"
]
},
{
"cell_type": "markdown",
"id": "ee5cf956",
Expand Down
Binary file modified model.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7122872

Please sign in to comment.