search for: sabas02

Displaying 2 results from an estimated 2 matches for "sabas02".

Did you mean: sabas06
2012 Oct 02
0
Error messages when attempting to calculate polychoric correlation matrices using the psych package
...a variable, a second ordered categorical variable." So polychor doesn't take a data frame as its argument, and computes only one polychoric correlation at a time. (It generally helps in R, and even more generally, to read the documentation.) Thus, e.g., > with(data.matrix18, polychor(SABAS02, SABAS06)) [1] 0.1811532 > with(data.matrix18, polychor(SABAS02, SABAS06, ML=TRUE)) [1] 0.1817071 If you want to compute a matrix of polychoric correlations using the polycor package, then you can use the hetcor function -- see ?hetcor -- but you'll then have to change your variables from...
2012 Oct 01
1
Error messages when attempting to calculate polychoric correlation matrices
...served responses for one extreme of the item. The dataset has no missing data following multiple imputation and preliminary analyses were conducted using SPSS. I have included a command that will reproduce the dataset below, apologies for the size of the command: data.matrix18 <- structure(list(SABAS02 = structure(c(6, 2, 5, 6, 4, 6, 5, 3, 5, 1, 4, 4, 6, 5, 5, 5, 4, 4, 4, 3, 4, 6, 5, 2, 5, 4, 5, 4, 4, 5, 5, 5, 2, 5, 4, 5, 5, 5, 6, 3, 6, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 4, 5, 5, 4, 6, 6, 5, 6, 4, 4, 5, 4, 5, 5, 5, 6, 4, 4, 5, 4, 6, 5, 6, 5, 6, 6, 5, 4, 6, 6, 5, 3, 4, 2, 4, 5, 5, 6, 2, 6, 5, 4, 6, 2,...