tmp = mtcars[,1:4]
tmp$cyl = ordered(mtcars$cyl) # ordered factor
tmp$hp = ordered(mtcars$hp) # binary factor
umx_cov_diag(tmp, ordVar = 1, use = "pair")
tmp2 = tmp[, c(1,3)]
umx_cov_diag(tmp2)
umx_cov_diag(tmp2, format = "Full")
Run the code above in your browser using DataLab