In class, we saw how one could use a mixed model as an alternative to the paired t-test. Lets say that we have subjects and each subject is measured twice. So we have a sample before (t = 0) and a sample after (t = 1). A proper way to do this with a mixed model is as follows:
$$Y_{ij} = β_0 + β_1t + a_i + ε_{ij}, a_i ∼ N(0, σ^2_{subject} ), ε_{ij} ∼ N(0, σ^2_{res})$$
where $a_i$ is the random effect for subject. If I would analyse this in, for example SAS, I would use a random intercept model. But why wouldn't it make sense to include a random slope?
$$Y_{ij} = β_0 + (β_1 + a_{2i})t + a_{1i} + ε_{ij}, a_i ∼ N(0, G ), ε_{ij} ∼ N(0, σ^2_{res})$$
where $G$ is the covariance matrix.