HSS8005
  • Module plan
  • Materials
  • Resources
  • Data
  • Assessment
  • Canvas
  1. Week 6
  2. Coding
  • Weekly materials

  • Introduction
  • Week 1
    • Theory
    • Coding
    • Application
  • Week 2
    • Theory
    • Coding
    • Application
  • Week 3
    • Theory
    • Coding
    • Application
  • Week 4
    • Theory
    • Coding
    • Application
  • Week 5
    • Theory
    • Coding
    • Application
  • Week 6
    • Theory
    • Coding
    • Application
  • Week 7
    • Theory
    • Coding
    • Application
  • Week 8
    • Theory
    • Coding
    • Application
  • Conclusions
  1. Week 6
  2. Coding

Week 6 coding

Temporalities: Panel, longitudinal and time-series analysis

The application workshop will use functions from the following packages:

Package : : Function Purpose
lme4::lmer() The lme4 package provides functions for fitting linear and generalized linear mixed-effects models. The lmer() function fits linear mixed-effects regression models via restricted (or residual, or reduced) maximum likelihood (REML) or maximum likelihood.
panelr A newer package designed to aid in the analysis of panel data, designs in which the same group of respondents/entities are contacted/measured multiple times. It aims to simplify the fitting of panel models that use multilevel models for estimation, especially the kind that produces within-entity effects.
plm An older package for linear modelling of panel data from an econometrics perspective, de-focusing from maximum likelihood estimation. It automates some basic data management tasks such as lagging and summing.
pglm Written by the same author as the plm package, it extends the plm econometrics approach to panel data analysis to generalised linear models.

Explore the package websites for an overview of the purposes and the main functions of these packages.

Theory
Application