Take a contingency table of counts and returns a matrix of observations.
Examples:
(use '(incanter core stats datasets))
(def by-gender (group-on (get-dataset :hair-eye-color) 2))
(def table (matrix (sel (first by-gender) :cols 3) 4))
(detabulate :table table)
(tabulate (detabulate :table table))
;; example 2
(def data (matrix [[1 0]
[1 1]
[1 1]
[1 0]
[0 0]
[1 1]
[1 1]
[1 0]
[1 1]]))
(tabulate data)
(tabulate (detabulate :table (:table (tabulate data))))
Comments top
No comments for detabulate. Log in to add a comment.