CHECK=GROUPS option in MSP; Molenaar and Sijtsma, 2000).coefH(X, se = TRUE, nice.output = TRUE, group.var = NULL)nrow(X) respondents to ncol(X) items.
Missing values are not allowedTRUE, the standard errors of the scalability coefficients are givenTRUE, scalability coefficients and standard errors are combined in an a single object of class noquotenrow(X) or matrix with number of rows equal to nrow(X) to be used as grouping variablenice.output = FALSE and se = TRUE; see details)nice.output = TRUE and se = TRUE, the result is a list of 3 objects of class noquote;
if nice.output = FALSE and se = TRUE, the result is a list of 6 matrices (3 for the scalability coefficients and 3 for the standard errors); and
if se = FALSE, the result is a list of 3 matrices (for the scalability coefficients.
if group.var = Y with Y having K values, an additional element named Groups is added to the list.
Element Groups shows the scalability coefficients per group ordered by means of sort (see Sys.getlocale for details).
group.var returns coefficients for groups containing at least two case.
Computation of standard errors can be slow for a combination of a large sample size and a large number of items.coefZ, search.normaldata(acl)
Communality <- acl[,1:10]
coefH(Communality)
coefH(Communality, se=FALSE)
subgroup <- ifelse(acl[,11] < 2,1,2)
coefH(Communality, group.var = subgroup)Run the code above in your browser using DataLab