https://github.com/pachadotdev/leontief
Leontief's Input-Output Model in R
https://github.com/pachadotdev/leontief
input-output macroeconomics r
Last synced: over 1 year ago
JSON representation
Leontief's Input-Output Model in R
- Host: GitHub
- URL: https://github.com/pachadotdev/leontief
- Owner: pachadotdev
- License: other
- Created: 2020-03-27T04:24:58.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T19:59:04.000Z (about 2 years ago)
- Last Synced: 2025-02-28T22:41:07.636Z (over 1 year ago)
- Topics: input-output, macroeconomics, r
- Language: R
- Homepage:
- Size: 1.82 MB
- Stars: 14
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Support: .github/SUPPORT.md
- Codemeta: codemeta.json
Awesome Lists containing this project
README
# leontief
[](https://cran.r-project.org/package=leontief)
[](https://www.tidyverse.org/lifecycle/#stable)
[](https://codecov.io/gh/pachadotdev/leontief?branch=master)
[](https://github.com/pachadotdev/leontief/actions/workflows/R-CMD-check.yaml)
The goal of leontief is to provide an implementation of the Input-Output
model developed by Wassily Leontief. It represents the interdependencies between
different sectors of a national economy or different regional economies.
## Installation
Stable version (CRAN):
``` r
install.packages("leontief")
```
Development version (GitHub):
``` r
remotes::install_github("pachadotdev/leontief")
```
## Example
This is a basic example which shows you how to obtain the input requirement matrix:
``` r
library(leontief)
# use a real input-output matrix and final demand vector
set.seed(200100)
X <- matrix(rnorm(100), nrow = 10)
d <- rnorm(10)
input_requirement_matrix(X,d)
```
Please read the vignette for the details.
## Code of conduct
Please note that the 'leontief' project is released with a
[Contributor Code of Conduct](.github/CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.