correct.rs {ccrs}R Documentation

Correct response-style-biased data

Description

Corrects response-style-biased data, given ccrsdata.list created by create.ccrsdata.

Usage

correct.rs(ccrsdata.list)

Arguments

ccrsdata.list

A list generated by create.ccrsdata, which contains Fmat, Mmat.q1, Mmat.q and X.

Value

Returns an object of crs with the following elements.

Beta

An n by q-1 matrix of coefficiets for response functions.

Y.hat

An n by m matrix of corrected data matrix.

MB

An n by q matrix of values of response functions evaluated at the midpoint between boundaries.

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

create.ccrsdata

Examples

###data setting
n <- 30 ; m <- 10 ; H.true <- 2 ; K.true <- 2 ; q <- 5
datagene <- generate.rsdata(n=n,m=m,K.true=K.true,H.true=H.true,q=q,clustered.rs = TRUE)
###obtain n x m data matrix
X <- datagene$X
ccrsdata.list <- create.ccrsdata(X,q=q)
crs.list <- correct.rs(ccrsdata.list)

[Package ccrs version 0.1.0 Index]