/* Populate the hash with zero entries */
entries = xnmalloc (hi - lo + 1, sizeof *entries);
/* Populate the hash with zero entries */
entries = xnmalloc (hi - lo + 1, sizeof *entries);
if (cst->n_expected > 0 && n_cells != cst->n_expected)
{
msg (ME, _("CHISQUARE test specified %d expected values, but "
if (cst->n_expected > 0 && n_cells != cst->n_expected)
{
msg (ME, _("CHISQUARE test specified %d expected values, but "
cst->n_expected, var_get_name (var), n_cells);
freq_hmap_destroy (&freq_hash, var_get_width (var));
continue;
}
struct pivot_table *table = pivot_table_create__ (
cst->n_expected, var_get_name (var), n_cells);
freq_hmap_destroy (&freq_hash, var_get_width (var));
continue;
}
struct pivot_table *table = pivot_table_create__ (
struct pivot_dimension *var_dim
= pivot_dimension_create (table, PIVOT_AXIS_COLUMN, N_("Variable"));
struct pivot_dimension *var_dim
= pivot_dimension_create (table, PIVOT_AXIS_COLUMN, N_("Variable"));
pivot_category_create_leaf (var_dim->root,
pivot_value_new_variable (ost->vars[i]));
struct pivot_dimension *category_dim
= pivot_dimension_create (table, PIVOT_AXIS_ROW, N_("Category"));
size_t n_cells = cst->hi - cst->lo + 1;
pivot_category_create_leaf (var_dim->root,
pivot_value_new_variable (ost->vars[i]));
struct pivot_dimension *category_dim
= pivot_dimension_create (table, PIVOT_AXIS_ROW, N_("Category"));
size_t n_cells = cst->hi - cst->lo + 1;
pivot_category_create_leaf (category_dim->root,
pivot_value_new_integer (i + 1));
pivot_category_create_leaves (category_dim->root, N_("Total"));
pivot_category_create_leaf (category_dim->root,
pivot_value_new_integer (i + 1));
pivot_category_create_leaves (category_dim->root, N_("Total"));
{
/* Category. */
pivot_table_put3 (table, 0, v, i,
{
/* Category. */
pivot_table_put3 (table, 0, v, i,
struct pivot_dimension *variables = pivot_dimension_create (
table, PIVOT_AXIS_ROW, N_("Variable"));
struct pivot_dimension *variables = pivot_dimension_create (
table, PIVOT_AXIS_ROW, N_("Variable"));