course website

http://courses.demog.berkeley.edu/mason213

Your Demography Lab account

In order to use the Demography Lab, you must have an account. You probably have one already, but if not please visit http://lab.demog.berkeley.edu/LabWiki/index.php/Main/GettingStarted AND THEN download and fill out the http://lab.demog.berkeley.edu/Docs/statementofcompliance.pdf.

Demography Lab documentation

You can find lots of good information at http://lab.demog.berkeley.edu/LabWiki. Check it out in your copious free time.

Getting access to UCB licensed material

The textbook for this course is site licensed by UCB for students. In order to access the book, your computer must either - have an ipaddress associated with UC Berkeley - the Library’s ezproxy enabled https://guides.lib.berkeley.edu/ezproxy/browser-bookmarklet

If you are connecting to the internet via AirBears or through a workstation in the basement of 2232, then your ipaddress will get you in. If you are elsewhere in the universe, you’ll need the ezproxy.

noMachine

We use noMachine to get a complete Demography Lab desktop when we’d prefer not to be in the attic or basement of 2232 Piedmont. noMachine is very clever software – the remote desktop that it provides is fast and unbreakable. Even if the internet breaks for a week, your noMachine session remains active and you can just reconnect to it and pick up where you left off.

We do not need to use noMachine today because R/Rstudio is the only Demography Lab application that we’ll use. For that we can simply browse to https://rstudio.demog.berkeley.edu But for other stuff – like Stata or Python or SAS or C or Perl or Socsim or anything other than R – noMachine is the best thing ever.

For instructions on how to setup and use noMachine see

http://lab.demog.berkeley.edu/LabWiki/index.php/Main/NoMachine

You’ll want to set this up after class so you can be ready for the rest of graduate school.

The 12 most important Linux commands

The Demography Lab servers all run Linux (a popular variant of the Unix operating system). Unix is also the underlying OS of many popular Apple products e.g MacOS. Thus many of the cool tricks that you can do on Linux machine, can also be done on Macs.

Although Linux machines, like all modern OS’s support graphic user interfaces (desktops), Linux, in it’s purest form runs at the command line. This is good thing for scientists because it makes us stronger and much more efficient. For a gentle introduction to Linux at the Demography Lab, please take a look at The 12 most important Linux commands http://lab.demog.berkeley.edu/pmWiki/LabWiki/uploads/Main/12important.pdf

Since we will not be using anything other than R/Rstudio this week, Linux commands will not be crucial right away, but check out the above document after class so you know what lies ahead.

rstudio.demog.berkeley.edu

Rstudio is the application that we will live in this term. Before we dive in, Let’s note a couple of things:

Goto  Tools -> Global Options 

Under the "General" Tab:

uncheck the box : Restore RData into workspace at startup

and change "Save workspace to RData on exit" to "NEVER"

Make this change or suffer the consequence – irreproducible results.