Skip to content

Polychor() - why does it take that long?

2 messages · Torvon, John Fox

#
Dear Torvon,

First, the number of observations is pretty much irrelevant, since
polychoric correlations are computed from the contingency table for the
variables.

Second, it's not obvious to me what data[c(s1,s2)] might be since this is
not how one would normally call polychor(). That is, called with one
argument as you've done, that argument should be a contingency table.

Third, if you want to make the computation faster, you could forgo the ML
estimator for the quick two-step estimator: see ?polychor.

Finally, it's inconceivable to me that the computation should really take
20+ minutes, so I expect that there's an error in your command, but without
a reproducible example, one can only guess at what that error is. My guess:
data[c(s1,s2)] isn't a two-way contingency table.

I hope this helps,
 John

-------------------------------------------------------
John Fox
Senator William McMaster Professor of Social Statistics
Department of Sociology
McMaster Univeristy
Hamilton, Ontario, Canada
time for
variables,