search for: sabas06

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

Did you mean: sabas02
2012 Oct 02
0
Error messages when attempting to calculate polychoric correlation matrices using the psych package
...e, 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 numeric t...
2012 Oct 01
1
Error messages when attempting to calculate polychoric correlation matrices
..., 5, 5, 5, 5, 4, 5, 3, 5, 5, 5, 5, 6, 3, 5, 6, 5, 6, 4, 5, 4, 4, 5, 6, 2, 5, 6), value.labels = structure(c(6, 5, 4, 3, 2, 1), .Names = c("Strongly Agree", "Agree", "Slightly Agree", "Slightly Disagree", "Disagree", "Strongly Disagree"))), SABAS06 = structure(c(6, 6, 6, 6, 6, 6, 5, 5, 6, 3, 6, 6, 6, 5, 5, 6, 5, 6, 6, 5, 5, 6, 6, 6, 6, 5, 6, 3, 6, 5, 5, 5, 5, 6, 6, 6, 3, 6, 6, 5, 5, 4, 5, 6, 6, 5, 6, 5, 6, 6, 6, 6, 6, 6, 5, 5, 6, 6, 6, 6, 6, 6, 5, 6, 6, 6, 6, 6, 4, 6, 5, 5, 6, 6, 6, 6, 6, 6, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,...