correct.rs: Correct response-style-biased data

Description Usage Arguments Value References See Also Examples

View source: R/correct.rs.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
###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)

Example output



ccrs documentation built on May 1, 2019, 10:11 p.m.