- struct tab_table *t = tab_create (cov->dim, length);
- int n;
- int i;
-
- tab_title (t, "Covariance Encoding");
-
- tab_box (t,
- TAL_2, TAL_2, 0, 0,
- 0, 0, tab_nc (t) - 1, tab_nr (t) - 1);
-
- tab_hline (t, TAL_2, 0, tab_nc (t) - 1, 1);
-
-
- for (i = 0 ; i < cov->n_vars; ++i)
+ struct pivot_table *table = pivot_table_create ("Covariance Encoding");
+
+ struct pivot_dimension *factors = pivot_dimension_create (
+ table, PIVOT_AXIS_COLUMN, "Factor");
+ for (size_t i = 0 ; i < cov->n_vars; ++i)
+ pivot_category_create_leaf (factors->root,
+ pivot_value_new_variable (cov->vars[i]));
+ for (size_t i = 0, n = 0; i < cov->dim - cov->n_vars; n++)