https://github.com/adamrossnelson/crossreg
Crosswalk between Stata, R, and Python. Demonstrates/Implements OLS regression calculations in each environment.
https://github.com/adamrossnelson/crossreg
crosswalk dictionary python r rstudio stata
Last synced: 11 months ago
JSON representation
Crosswalk between Stata, R, and Python. Demonstrates/Implements OLS regression calculations in each environment.
- Host: GitHub
- URL: https://github.com/adamrossnelson/crossreg
- Owner: adamrossnelson
- License: other
- Created: 2017-10-11T16:51:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-06T04:13:56.000Z (over 5 years ago)
- Last Synced: 2025-04-05T13:01:38.258Z (12 months ago)
- Topics: crosswalk, dictionary, python, r, rstudio, stata
- Language: Jupyter Notebook
- Size: 17.6 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# crossreg
## Introduction
A rosetta stone project.
This project is designed to provide an applied crosswalk between Stata, R, and Python. Other crosswalks provide a list of columns with equivalent code snippits. This crosswalk aims to provide similar projects in different environments. Aside from being useful as a crosswalk this project can be useful in teaching and/or learning first semester statistics.
First demonstrates and implements correlation calculations in each environment. See the file series `coorhandStata.do coorhandPy.py corrhandR.r`. In Stata enter the following command for a demonstration (no downloads necessary):
```Stata
do https://raw.githubusercontent.com/adamrossnelson/crossreg/master/corrhandStata.do
```
In R use the following command for a demonstration (no downloads necessary):
```R
source("https://raw.githubusercontent.com/adamrossnelson/crossreg/master/corrhandR.r")
```
Second, demonstrates/Implements OLS regression calculations in each environment. See the file series `reghandStata.do reghandPy.py reghandR.r`.
## For a similar examples
See: [BadgerGameday](https:github.com/adamrossnelson/BadgerGameday) or [rosetta](https://github.com/adamrossnelson/rosetta).
This [StataQuickReference](https://github.com/adamrossnelson/StataQuickReference) repot also offers a [Stata to Pandas Cross-Walk](https://github.com/adamrossnelson/StataQuickReference/blob/master/spcrosswlk.md).
## Other Similar References
Over @vikjam replicated, in three ways, tables from [Mostly Harmless Econometrics](http://www.mostlyharmlesseconometrics.com/). Check it out at [Mostly Harmless Replication](https://github.com/vikjam/mostly-harmless-replication). A two-way dictionary with a growing number of entries compares common Stata and R code and conventions. Originally it was an April 1st fool's joke. But, the dictionary is useful at [RStata](https://github.com/EconometricsBySimulation/RStata).
## Questions, Comments, Hatemail
Send me your questions, comments, and tell me what I did wrong.
Fork and pull requests welcome.