Fixed design matrix column-to-variable matching
authorJason Stover <jhs@math.gcsu.edu>
Mon, 28 Nov 2005 01:51:58 +0000 (01:51 +0000)
committerJason Stover <jhs@math.gcsu.edu>
Mon, 28 Nov 2005 01:51:58 +0000 (01:51 +0000)
src/design-matrix.c

index 5d513985a42d8b3eec132391d757ec475bda6d6c..2e9ddf0b73c11a36bce5cc1458f1f73e048b0d1b 100644 (file)
@@ -113,8 +113,8 @@ design_matrix_create (int n_variables,
       (dm->vars + i)->first_column = n_cols;
       if (v->type == NUMERIC)
        {
-         n_cols++;
          (dm->vars + i)->last_column = n_cols;
+         n_cols++;
        }
       else if (v->type == ALPHA)
        {