X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Fstats%2Fglm.q;h=13b097f3b8fce021c9004184b2427f9602e94643;hb=956933cf2545aa67692fd72ef8e4b3e00e524281;hp=5f20a2e3f0bf96da24b6a7214d6f0538a475ced9;hpb=0d323042aa7503f67186c88a5d41d1517ba9926c;p=pspp diff --git a/src/language/stats/glm.q b/src/language/stats/glm.q index 5f20a2e3f0..13b097f3b8 100644 --- a/src/language/stats/glm.q +++ b/src/language/stats/glm.q @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -358,7 +359,13 @@ run_glm (struct casereader *input, k++; } - cov = covariance_2pass_create (n_numerics, numerics, n_categoricals, categoricals, NULL, MV_NEVER); + struct categoricals *cats = categoricals_create (categoricals, + n_categoricals, + NULL, MV_NEVER); + + cov = covariance_2pass_create (n_numerics, numerics, + cats, + NULL, MV_NEVER); reader = casereader_clone (input); reader = casereader_create_filter_missing (reader, numerics, n_numerics,