When applying the BIC in a longitudinal context, there is some debate as to whether the sample size
should be taken to mean the number of subjects or the total number of observations across all
subjects (see Section 7.3 of Hedeker and Gibbons, 2006).
Assuming the default BIC
function accounts for the latter case, this generic function can be
implemented for longitudinal models where the number of subjects can be extracted in order to
calculate the BIC under the alternative definition.