Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stallman-j/ekonomr
R workflow package for economists (ekonomer in Swedish)
https://github.com/stallman-j/ekonomr
Last synced: about 1 month ago
JSON representation
R workflow package for economists (ekonomer in Swedish)
- Host: GitHub
- URL: https://github.com/stallman-j/ekonomr
- Owner: stallman-j
- License: gpl-3.0
- Created: 2024-09-09T12:31:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-23T01:47:34.000Z (about 2 months ago)
- Last Synced: 2024-11-23T02:24:05.923Z (about 2 months ago)
- Language: R
- Homepage: https://stallman-j.github.io/ekonomR/
- Size: 68.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
Awesome Lists containing this project
README
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# ekonomR
This package provides a typical workflow for economists, particularly those working with spatial data.
The package enables starting from scratch and building out a project structure designed to be replicable and sharable from project inception.
In addition to project structuring, it includes examples for downloading data (both with and without password protection), basic data cleaning, the workflow most typically encountered for spatial analysis common to environmental economics (i.e. downloading raster data, projecting it to the vector level and then generating a long dataset with observations at the unit-by-time level, e.g. city-month), several common analysis types (e.g. event study, basic regression, two-way fixed effects, instrumental variables), outputting the results of analysis into LaTex-friendly formats, and plotting and mapping with ggplot.
The package is intended as a template to avoid having to search in your old files for the code in common tasks, providing aesthetically appealing but simple default settings for analysis outputs commonly used by economists (e.g. regression tables with specialized footnotes).Still under construction! Many of the functions as advertised are still not yet available, but will be online shortly.
# Quick Links
Check out the [documentation](https://stallman-j.github.io/ekonomR/documentation/documentation/).
View the [vignettes](https://stallman-j.github.io/ekonomR/vignettes/vignettes/).
View the [`ekonomR` GitHub Repository](https://github.com/stallman-j/ekonomR). The repo contains more sample code that hasn't yet been put into vignettes.
# Installation
You can install the development version of `ekonomR` from GitHub:
``` r
install.packages("remotes")
remotes::install_github("stallman-j/ekonomR")
```The package is updated regularly. A simple way to get the updates is to go into your `Packages` tab in RStudio, uncheck the `ekonomR` package, and then in your R console re-run the installation:
``` r
remotes::install_github("stallman-j/ekonomR")
```# Migration of Documentation
**UPDATED AS OF 2024-09-23: Detailed documentation including installing R and RStudio has been moved to the [ekonomR documentation](https://stallman-j.github.io/ekonomR/documentation/documentation/) and [vignettes](https://stallman-j.github.io/ekonomR/vignettes/vignettes/).**
# What's Included?
The workflow that `ekonomR` provides includes but is not limited to the following:
- setting up directories at the start of a project
- downloading data (with and without logins required)
- basic data cleaning
- the workflow most typically encountered for spatial analysis common to environmental economics
- downloading raster (climate) data
- projecting raster data to the vector level
- generating a long dataset with observations at the unit-by-time level, e.g. city-month
- several common analysis types, with output to LaTex/html
- event study
- basic regression
- two-way fixed effects
- instrumental variables
- making plots
- making maps## Integration with LaTeX via LaTekonomer
Many of these tables and figures output to be used with the complementary resource **LaTekonomer**, which can be accessed [**here**](https://stallman-j.github.io/LaTekonomer).
**ekonomR** and **LaTekonomer** are designed to be complementary research templates, getting you moving forward on your project whether you're at the stage of tinkering with your final figure captions or figuring out what R even is.
The use of **LaTekonomer** does not require **ekonomR** or vice versa.
## What's Not Included?: A Plug for Markdown and RMarkdown
If you're not interested in LaTex (which is what **LaTekonomer** uses) but want something that's more professional than Word and easier to learn than LaTex, you may be interested in Markdown.
To learn about the Markdown world, check out [The Markdown Guide](https://www.markdownguide.org/book/), which integrates sublimely with R and GitHub.
This README, for instance, is composed with Markdown.
If you're interested in Markdown and R, check out [R Markdown: The Definitive Guide](https://bookdown.org/yihui/rmarkdown/).
The upfront costs of Markdown are much lower than LaTex, and the ubiquity and readability of the Markdown style has made it a compelling alternative to LaTex in many situations.