static struct cmd_t_test cmd;
-
+static int bad_weight_warn;
int
cmd_t_test(void)
else
value_is_missing = is_missing;
+ bad_weight_warn = 1;
+
multipass_procedure_with_splits (calculate, &cmd);
n_pairs=0;
tab_text(self->t,10,2, TAB_CENTER | TAT_TITLE,_("Upper"));
tab_joint_text(self->t, 9, 1, 10, 1, TAB_CENTER | TAT_PRINTF,
- _("%d%% Confidence Interval of the Difference"),
- (int)round(cmd->criteria*100.0));
+ _("%g%% Confidence Interval of the Difference"),
+ cmd->criteria*100.0);
}
tab_vline(self->t,TAL_0,6,0,1);
tab_joint_text(self->t, 5, 1, 6, 1, TAB_CENTER | TAT_PRINTF,
- _("%d%% Confidence Interval of the Difference"),
- (int)round(cmd->criteria*100.0));
+ _("%g%% Confidence Interval of the Difference"),
+ cmd->criteria*100.0);
tab_text (self->t, 2, 2, TAB_CENTER | TAT_TITLE, _("Mean"));
tab_text (self->t, 3, 2, TAB_CENTER | TAT_TITLE, _("Std. Deviation"));
tab_joint_text(self->t,5,1,6,1,TAB_CENTER | TAT_PRINTF,
- _("%d%% Confidence Interval of the Difference"),
- (int)round(cmd->criteria*100.0));
+ _("%g%% Confidence Interval of the Difference"),
+ cmd->criteria*100.0);
tab_vline(self->t,TAL_0,6,1,1);
tab_hline(self->t,TAL_1,5,6,2);
int i;
struct cmd_t_test *cmd = (struct cmd_t_test *)_cmd;
- double weight = dict_get_case_weight(default_dict,c);
+ double weight = dict_get_case_weight(default_dict,c,&bad_weight_warn);
/* Skip the entire case if /MISSING=LISTWISE is set */
struct cmd_t_test *cmd = (struct cmd_t_test *)cmd_;
- double weight = dict_get_case_weight(default_dict,c);
+ double weight = dict_get_case_weight(default_dict,c,&bad_weight_warn);
/* Skip the entire case if /MISSING=LISTWISE is set */
if ( cmd->miss == TTS_LISTWISE )
struct cmd_t_test *cmd = (struct cmd_t_test *) cmd_;
- double weight = dict_get_case_weight(default_dict,c);
+ double weight = dict_get_case_weight(default_dict,c,&bad_weight_warn);
/* Skip the entire case if /MISSING=LISTWISE is set ,
AND one member of a pair is missing */
const union value *gv = &c->data[indep_var->fv];
- const double weight = dict_get_case_weight(default_dict,c);
+ const double weight = dict_get_case_weight(default_dict,c,&bad_weight_warn);
if ( value_is_missing(gv,indep_var) )
{