Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chmue/ipz-stata2r
Conversions from Stata to R (and vice versa)
https://github.com/chmue/ipz-stata2r
Last synced: 24 days ago
JSON representation
Conversions from Stata to R (and vice versa)
- Host: GitHub
- URL: https://github.com/chmue/ipz-stata2r
- Owner: chmue
- Created: 2013-11-19T13:05:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-22T00:29:05.000Z (almost 11 years ago)
- Last Synced: 2023-08-06T01:29:25.406Z (over 1 year ago)
- Language: R
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Stata to R (and vice versa) conversion
======================================This project aims to provide simple code fragments for everyday data analysis
tasks in Stata and in R. The ultimate goal is to make conversion between the
two software packages easier.The inspiration for this project is the [Data Analysis Examples](http://www.ats.ucla.edu/stat/dae/)
website made by the Statistical Consulting Group at UCLA.Structure and naming conventions
--------------------------------The tasks are structured in the following four categories:
1. Reading/writing data
2. Data munging (recoding/cleaning)
3. Computing statistical models
4. Presenting resultsThere is a "standalone" and a "short" example for each task. The standalone
example contains all the necessary commands to run the example (reading
data, loading addons, etc.). The short example is just the code for the
specific task (the standalone code without preparatory/unrelated steps).The standalone code can be in the Rmd format. This allows for nicer
explanations of what the code does than comments in the script files.The file naming follows the scheme:
* adding-vars.{do,md}
* adding-vars-short.do
* adding-vars.{r,Rmd}
* addings-vars-short.rData
----The data on [European Representative Democracies](http://www.erdda.se/index.php/projects/erd/data-archive) that is used in all the
examples is compiled and kindly made available by Staffan Andersson, Torbjörn
Bergman and Svante Ersson. The full citation is:**Andersson, Staffan; Bergman, Torbjörn & Ersson, Svante (2012). “The European Representative Democracy Data Archive”. Main sponsor: Riksbankens Jubileumsfond (In2007-0149:1-E). Principal investigator: Torbjörn Bergman. [www.erdda.se]**
We have made some preliminary data cleaning steps mainly annotating
variables with their names from the codebook. The relevant scripts are
in the `data-prep` folder.Authors
-------Code was either written by Marco Steenbergen or by Christian Müller.
Christian Müller maintains the git repository.* [Prof. Dr. Marco Steenbergen](http://www.ipz.uzh.ch/institut/mitarbeitende/staff/marcosteenbergen.html)
* [Christian Müller](http://www.ipz.uzh.ch/institut/mitarbeitende/staff/christianmueller.html)Similar projects
----------------* [Data Analysis Examples](http://www.ats.ucla.edu/stat/dae/) by the Statistical Consulting Group at UCLA
* to be extendedLicensing
---------The data files are copyright (c) 2012-2013 by Staffan Andersson, Torbjörn
Bergman and Svante Ersson. They may only be redistributed under the terms
specified at [erdda.se](http://www.erdda.se/index.php/projects/erd/data-archive).All code that is written for this project is licensed under the CC-BY
licence:
stata2r by Marco Steenbergen and Christian Müller is licensed under a Creative Commons Attribution 3.0 Unported License.