Skip to content
Prev 132470 / 398506 Next

Correlation when one variable has zero variance (polychoric?)

Dear Jose,
This is simply a bug in polychor(), which currently does the following test:

  if (r < 1) stop("the table has fewer than 2 rows")
  if (c < 2) stop("the table has fewer than 2 columns")

That is, my intention was to check (r < 2) and report an error. Actually, it
would probably be better to return NA and report a warning.
I don't entirely follow this. Are you referring to the table above with one
row, more generally to table with zero marginals, or to tables in which
there are interior zeroes?
When there are zero marginals the ML estimate cannot be unique since there
is zero information about one or more of the thresholds.
Yes. If there is a zero marginal, then it shouldn't have been computed in
the first place (and was due to the error that I mentioned).
I'd say no. There is no information in the data about the correlation.
That the data aren't informative about the parameters of interest.
Presumably the normally distributed latent variables that underlie the table
have some correlation, but you can't estimate it from the data.

I'll fix polycor() (and put it a test for 0 marginals as well as single-row
or -column tables) -- thanks for the bug report.

Regards,
John