Introduction to Quantitative Methods

Installing Zelig

Zelig has recently been updated and does not work with our scripts. If you've installed the new version by mistake, follow the instructions below to go back to the old version 4.2.1:

  1. First remove the package

    remove.packages("Zelig")
    
  2. Close RStudio and open it again.

  3. Install the package

    install.packages("https://cran.r-project.org/src/contrib/Archive/Zelig/Zelig_4.2-1.tar.gz", 
                     repos=NULL, 
                     type="source")
    
  4. If you've never installed Zelig before then you might get an error about missing dependency for package sandwich. If that happens then install sandwich first and repeat the previous step.

    install.packages("sandwich")
    

Checking Zelig Version

If you already have Zelig installed, you can check its version using the packageVersion() function. Make sure it says version 4.2.1.

packageVersion("Zelig")
[1] '4.2.1'