# NOT RUN {
tmp = mtcars[,1:4]
tmp$cyl = ordered(mtcars$cyl) # ordered factor
tmp$hp = ordered(mtcars$hp) # binary factor
umx_var(tmp, format = "diag", ordVar = 1, use = "pair")
tmp2 = tmp[, c(1,3)]
umx_var(tmp2, format = "diag")
umx_var(tmp2, format = "full")
# }
Run the code above in your browser using DataLab