parse_npar_tests (struct lexer *lexer, struct dataset *ds, struct cmd_npar_tests *npt,
struct npar_specs *nps)
{
- npt->binomial = 0;
npt->chisquare = 0;
- npt->ks_one_sample = 0;
npt->cochran = 0;
+ npt->binomial = 0;
+ npt->ks_one_sample = 0;
+ npt->wilcoxon = 0;
+ npt->sign = 0;
+ npt->runs = 0;
npt->friedman = 0;
+ npt->kendall = 0;
npt->kruskal_wallis = 0;
npt->mann_whitney = 0;
- npt->jonckheere_terpstra = 0;
npt->mcnemar = 0;
- npt->runs = 0;
- npt->sign = 0;
- npt->wilcoxon = 0;
- npt->missing = 0;
+ npt->median = 0;
+ npt->jonckheere_terpstra = 0;
+
npt->miss = MISS_ANALYSIS;
+ npt->missing = 0;
npt->method = 0;
npt->statistics = 0;
+
memset (npt->a_statistics, 0, sizeof npt->a_statistics);
for (;;)
{
if (!parse_variables_const_pool (lexer, pool,
dict,
&vlist1, &n_vlist1,
- PV_NUMERIC | PV_NO_SCRATCH | PV_NO_DUPLICATE) )
+ PV_NUMERIC | PV_NO_SCRATCH | PV_DUPLICATE) )
return false;
if ( lex_match (lexer, T_WITH))
with = true;
if ( !parse_variables_const_pool (lexer, pool, dict,
&vlist2, &n_vlist2,
- PV_NUMERIC | PV_NO_SCRATCH | PV_NO_DUPLICATE) )
+ PV_NUMERIC | PV_NO_SCRATCH | PV_DUPLICATE) )
return false;
paired = (lex_match (lexer, T_LPAREN) &&
if (paired)
{
if ( n_vlist1 != n_vlist2)
- msg (SE, _("PAIRED was specified but the number of variables "
+ {
+ msg (SE, _("PAIRED was specified but the number of variables "
"preceding WITH (%zu) did not match the number "
"following (%zu)."), n_vlist1, n_vlist2);
+ return false;
+ }
test_parameters->n_pairs = n_vlist1 ;
}