Unix ShinyApp Tests and Book Build:
This is the git repo for the UG Econometrics book taught to 2nd year students at SciencesPo.
In order to participate in the course and to use the course material, you need to
- install
R
: download for free at https://www.r-project.org - install this
R
package in your computer. To do so, just copy and paste those lines into yourR
console:
if (!require(devtools)) {install.packages("devtools"); library(devtools)}
install_github(repo = "ScPoEcon/ScPoEconometrics")
A key part of this course are a series of interactive applications (or apps) that we developed with the shiny
framework. You launch the apps from a running R
session on your computer. The app will run in your web browser. You launch an app like this from R
:
library(ScPoEconometrics) # load our library
launchApp('SSR_cone') # runs the `SSR_cone` app in browser
launchApp() # no arg produces an error that shows all available apps
Error: Please run `launchApp()` with a valid app as an argument.
Valid apps are: 'anscombe', 'confidence_intervals', 'corr_continuous',
'datasaurus', 'reg_constrained', 'reg_dummy', 'reg_dummy_example',
'reg_full', 'reg_multivariate', 'reg_simple', 'reg_standardized',
'sampling', 'SSR_cone', 'standard_errors_changeN', 'standard_errors_simple'
Here is a screenshot of the SSR_cone
app:
In order to run the accompanying tutorials you would type, for example:
library(learnr)
run_tutorial("chapter3",package="ScPoEconometrics")
- fork this repository
- clone your fork to your computer:
git clone url_or_your_fork
- Start to work on your things on a new branch:
git checkout -b new_branch
- commit your work to that new branch!
- Place your new stuff on top of the most recent
upstream/master
:- add the upstream repo as a remote:
git remote add upstream [email protected]:floswald/ScPoEconometrics.git
- Use the
rebase
command
# git add your stuff # git commit your stuff git fetch upstream # get stuff from upstream git rebase upstream/master # merge upstream master and put your commits on top of it
- add the upstream repo as a remote:
- push that branch to your fork:
git push origin new_branch
- create pull request on
upstream
this book is made using bookdown. You can find the preview of an example at https://bookdown.org/yihui/bookdown-demo/
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material
under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. We are happy to suggest the following citation if you use our material in your work:
@book{
oswald_robin_2018,
title={Introduction to Econometrics with R},
url={https://scpoecon.github.io/ScPoEconometrics/},
publisher={github.com},
author={Oswald, Florian and Robin, Jean-Marc}, year={2018}
}
- NonCommercial — You may not use the material for commercial purposes.
- ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
Under the CC licence above, we are obliged to attribute any material that this book uses and which was shared under the same license:
- Chapter 1 Introduction to R is copied almost entirely from appliedstats by David Dalpiaz. I added a couple of practical tasks and made some minor edits.
- Chapter 2 is partly based on appliedstats, but only up to scatterplots.