<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Extract model information from GLMSELECT procedure in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218090#M11796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question:&lt;/P&gt;&lt;P&gt;If I use&amp;nbsp; /knotmethod = Multiscale split&amp;nbsp; in my code,&amp;nbsp; I got spli_Temperature_S0:5 in my model.&amp;nbsp;&amp;nbsp; I know it means the 5th basis on 0 scale.&amp;nbsp; I am confusing.&amp;nbsp; By reading the online material in SAS website,&amp;nbsp; there would be 2^i basis in scale i. Therefore, if scale = 0, the basis should be 1. What 5 in spl_Temperature_S0:5 means? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2015 15:25:09 GMT</pubDate>
    <dc:creator>Frank_Zhao</dc:creator>
    <dc:date>2015-05-22T15:25:09Z</dc:date>
    <item>
      <title>Extract model information from GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218087#M11793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fitting spline regression models using GLMSELECT.&amp;nbsp; The code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GLMSELECT DATA=DATESET;&lt;/P&gt;&lt;P&gt;CLASS&amp;nbsp; X;&lt;/P&gt;&lt;P&gt;EFFECT SPL=SPLINE(X/SPLIT DEGREE=3);&lt;/P&gt;&lt;P&gt;MODEL Y = X SPL/SELECTION=STEPWISE(CHOOSE=CV SELECT=SBC) CVMETHOD=INDEX(GROUP);&lt;/P&gt;&lt;P&gt;BY W Z;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I will get around 200 models through the BY statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to summarized my results and want to produce a table contains information from each model.&amp;nbsp; So my questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I would like a table containing all the models and the variables used in each model.&amp;nbsp; Can I produce a table with model name as the column and variables as the row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How to output the RMSE, Coefficient Variation and other statistics in a table for all models.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. By the way, I need to know what is the difference between CHOOSE = and SELECT =.&amp;nbsp; In Proc Reg, only Select = is enough to select best model.&amp;nbsp; How does CHOOSE= work in GLMSELECT procedure?&amp;nbsp; By the reading, it seems that SELECT= will produce some models not one?&amp;nbsp; How to understand it?&amp;nbsp; If I want to get the best predictive models, should I set CHOOSE=CV and SELECT=CV? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 16:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218087#M11793</guid>
      <dc:creator>Frank_Zhao</dc:creator>
      <dc:date>2015-05-21T16:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract model information from GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218088#M11794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following may help you to learn about CHOOSE, etc.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/207-31.pdf" title="http://www2.sas.com/proceedings/sugi31/207-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/207-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 21:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218088#M11794</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-05-21T21:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract model information from GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218089#M11795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Dear Ivm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also&amp;nbsp; take a look at the first two questions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 03:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218089#M11795</guid>
      <dc:creator>Frank_Zhao</dc:creator>
      <dc:date>2015-05-22T03:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extract model information from GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218090#M11796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question:&lt;/P&gt;&lt;P&gt;If I use&amp;nbsp; /knotmethod = Multiscale split&amp;nbsp; in my code,&amp;nbsp; I got spli_Temperature_S0:5 in my model.&amp;nbsp;&amp;nbsp; I know it means the 5th basis on 0 scale.&amp;nbsp; I am confusing.&amp;nbsp; By reading the online material in SAS website,&amp;nbsp; there would be 2^i basis in scale i. Therefore, if scale = 0, the basis should be 1. What 5 in spl_Temperature_S0:5 means? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 15:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218090#M11796</guid>
      <dc:creator>Frank_Zhao</dc:creator>
      <dc:date>2015-05-22T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract model information from GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218091#M11797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to look at the ODS OUTPUT tables (there is a list in the User's Guide right before the examples). Each table in the output corresponds to a different file that can be saved with the ods output statement. You may need to merge two or more of these in a post-model fitting step in a data statement. I don't have a specific example here because I haven't used GLMSELECT a lot. With a BY statement, these output files will be stacked with the results for each group identified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have some serious concerns about the model you are fitting. It looks like you are trying to decide if one should use a linear model in X or a cubic spline, or both for each group (essentially trying to see if there is curvilinearity?). Your use of the SPLIT option will consider each term of the spline (knot) as separate terms. With splines, the individual terms don't mean too much (they are arbitrary in order to get predictions that do mean something). Ending up with the second of four (or whatever) terms in a spline is pretty meaningless. I would take out the SPLIT; that way, the spline will be considered as a single term in the model. I also don't see a point of treating X as a factor (CLASS statement). This can create very strange spline basis functions (with many many terms). I didn't even think this would work until I tried it now on some data. I think the results are meaningless. Plus, with X as a factor in your example, X itself will capture any nonlinearity, leaving nothing for the spline function to represent. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 16:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218091#M11797</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-05-22T16:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extract model information from GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218092#M11798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.&amp;nbsp; I also concern if split is really needed in my case. Do you mean I can use SEPARATE if I have more than one variables in spline(x y z)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way,&amp;nbsp; the code is not exactly same as what I use. I did not use X as indicator and numeric variable at the same time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 17:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218092#M11798</guid>
      <dc:creator>Frank_Zhao</dc:creator>
      <dc:date>2015-05-22T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract model information from GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218093#M11799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My view is that you should treat the spline as one term.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 17:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218093#M11799</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-05-22T17:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extract model information from GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218094#M11800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I SEE.&amp;nbsp; THANK YOU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 19:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-model-information-from-GLMSELECT-procedure/m-p/218094#M11800</guid>
      <dc:creator>Frank_Zhao</dc:creator>
      <dc:date>2015-05-22T19:29:50Z</dc:date>
    </item>
  </channel>
</rss>

