Creates a dataset for CCRS from a preference data matrix.
create.ccrsdata(X,q=q)An n by m categorical data matrix.
An integer indicating the maximum rating.
Returns a list with the following elements.
FmatAn n by q-1 matrix of scaled rank-ordered boundary data.
Mmat.q1A q-1 by 3+1 matrix of I-spline basis functions, evaluated at the boundaries. +1 indicates all 0 intercepts.
Mmat.qA q by 3+1 matrix of I-spline basis functions, evaluated at the midpoints between boundaries.
XAn n by m categorical data matrix same as the input X.
For the difference between Mmat.q and Mmat.q1 in the resulting list, see Section 3.2 in reference paper.
Takagishi, M., Velden, M. van de & Yadohisa, H. (2019). Clustering preference data in the presence of response style bias, to appear in British Journal of Mathematical and Statistical Psychology.