Transforms data matrix by estimated response functions.
transformRSdata(X,Beta=Beta,Mmat.q=Mmat.q)An n by m categorical data matrix.
An n by q-1 matrix of coefficiets for response functions.
A q by 3+1 matrix of I-spline basis functions, evaluated at the midpoints between boundaries.
Returns a list with the following elements.
Y.hatAn n by m matrix of corrected data matrix.
MBAn n by q matrix of values of response functions evaluated at the midpoint between boundaries.