1 General Rules and Principles

1.1 Installing R and RStudio

Here are the instructions for installing R and RStudio on your Windows or Mac desktop. Skip the third part and do not install “SDSFoundations Package”.

1.2 Basic rules and best practices

All files should exist in a local folder that syncs to a cloud-storage service. No file you ever work on should be at risk of being lost if your computer ceases to function or be in your possesion. NEVER place any file on “downloads” or “desktop” folders.

Get a free cloud-storage service with a desktop application that syncs to a cloud-storage service. I like the Dropbox desktop app but feel free to choose any other service. You don’t need a lot of space so free version of any desktop cloud app would work. Under the Dropbox folder, create a designated folder for this course such as EC282.

All subfolders under EC282 and files in them should have unique and descriptive construction: DON’T use spaces in file or folder names. Here is an example of a folder structure that might work for a student in this class:

EC282
│  
│
└───Course_docs
│   │    SyllabusEC282.pdf
│   │    LectureNotes.pdf 
└───Assignments
│   └───Assignment1
│       │   dataset1name.Rda
│       │   Lastname_Firstname_Assignment1_EC282.R
│   └───Assignment2
│       │   dataset2name.Rda
│       │   Lastname_Firstname_Assignment1_EC282.R
│   └───Assignment3
│       │   dataset3name.Rda
│       │   Lastname_Firstname_Assignment3_EC282.R
│   └───Assignment4
│       │   dataset4name.Rda
│       │   Lastname_Firstname_Assignment4_EC282.R
│       │   ...
└───Exams
│   └───Midterm1
│       │   Midterm1Review.pdf
│       │   Midterm1Review_myanswers.docx
|       |   ...
│   

1.4 How to submit the homework assignment

You can use a snipping tool to copy and paste the relevant output and figures from RStudio console to a word file, type the answers, save everything and upload it on BlackBoard/Assignments. If you want to have a more elegant looking homework output the stargazer package is very powerful in transforming your analysis into publishable formats.