if (factor.n_vars < 2)
msg (MW, _("Factor analysis on a single variable is not useful."));
+ if (factor.n_vars < 1)
+ {
+ msg (ME, _("Factor analysis without variables is not possible."));
+ goto error;
+ }
+
if (matrix_reader)
{
struct idata *id = idata_alloc (factor.n_vars);
struct idata *idata = idata_alloc (factor->n_vars);
idata->cvm = covariance_1pass_create (factor->n_vars, factor->vars,
- factor->wv, factor->exclude);
+ factor->wv, factor->exclude, true);
for ( ; (c = casereader_read (r) ); case_unref (c))
{