I've read a few questions on this site (e.g., https://stats.stackexchange.com/a/48676/46427), but they rarely go beyond intuitive explanations. I am particularly interested with how to calculate an estimate via REML, not the intuition behind REML.
I know what maximum likelihood estimation is; basically, take your likelihood function $L(\boldsymbol{\theta} \mid \mathbf{y}) = f(\mathbf{y})$ and find the values of $\boldsymbol{\theta}$ which maximize $L$; that is your maximum-likelihood estimator.
Now we're talking about REML in a linear models class... something about how you take $n - r(\mathbf{X})$ linearly independent row vectors ($\mathbf{X}$ the design matrix, I suppose...) such that when multiplied by $\mathbf{X}$, you get the vector $\mathbf{0}^{T}$, use that as your data, compute a likelihood (or loglikelihood) based on that data, and do MLE on this (log)likelihood?
Searching online hasn't helped me very much. Could someone explain REML to someone who's very familiar with MLE? I cannot take an intuitive explanation here, like in the link I have in this post; I actually need to be able to do it.