The method for slseModel objects generates the matrix
of basis functions implied by the set of knots included in the model and
estimate the model by the least squares. Let \(Y\) be the
outcome and \(U\) be the matrix of basis functions. Then, the
function estimates the model using the code lm(Y~U).
For cslseModel, we could estimate the model using
lm(Y~Z+I(Z-1)+I(U0*(1-Z))+I(U1*Z)), where Z is a binary
variable equal to 1 for the treated and 0 for the nontreated, and
U0 and U1 are the matrices of basis functions for the
nontreated and treated, but the model is estimated separately for each
group. Therefore, the function estSLSE.cslseModel calls the
function estSLSE.slseModel for each slseModel objects
included in the cslseModel object.