create.ccrsdata {ccrs} | R Documentation |
Create a dataset for CCRS
Description
Creates a dataset for CCRS from a preference data matrix.
Usage
create.ccrsdata(X,q=q)
Arguments
X |
An n by m categorical data matrix. |
q |
An integer indicating the maximum rating. |
Details
For the difference between Mmat.q and Mmat.q1 in the resulting list, see Section 3.2 in reference paper.
Value
Returns a list with the following elements.
Fmat |
An n by q-1 matrix of scaled rank-ordered boundary data. |
Mmat.q1 |
A q-1 by 3+1 matrix of I-spline basis functions, evaluated at the boundaries. +1 indicates all 0 intercepts. |
Mmat.q |
A q by 3+1 matrix of I-spline basis functions, evaluated at the midpoints between boundaries. |
X |
An n by m categorical data matrix same as the input |
References
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.