Learn R Programming

ccrs (version 0.1.0)

create.ccrsdata: 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.

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 X.

Details

For the difference between Mmat.q and Mmat.q1 in the resulting list, see Section 3.2 in reference paper.

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.

See Also

correct.rs