for (; (c = casereader_read (input)); case_unref (c))
{
double case_hits = 0.0;
- const double w = weight ? case_data (c, weight)->f: 1.0;
+ const double w = weight ? case_num (c, weight) : 1.0;
for (v = 0; v < ct->n_vars; ++v)
{
const struct variable *var = ct->vars[v];
const union value *val = case_data (c, var);
- if ( var_is_value_missing (var, val, exclude))
+ if (var_is_value_missing (var, val) & exclude)
continue;
- if ( ch.success == SYSMIS)
+ if (ch.success == SYSMIS)
{
ch.success = val->f;
}
{
ch.failure = val->f;
}
- if ( ch.success == val->f)
+ if (ch.success == val->f)
{
ch.hits[v] += w;
case_hits += w;
}
- else if ( ch.failure == val->f)
+ else if (ch.failure == val->f)
{
ch.misses[v] += w;
}