<?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: Proc glmselect prediction model with grouping in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glmselect-prediction-model-with-grouping/m-p/533669#M26878</link>
    <description>&lt;P&gt;You say "&lt;SPAN&gt;I don't think I am doing this correctly." Is there an error? If so, please post the log.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't know the form of your data (you should always post some sample data, when possible), but I'm guessing that you should define some of the variables as classification variables by using the CLASS statement. Any discrete or categorical variable should be on the CLASS statement, like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glmselect data = train testdata=test;
   class Gender Minority AgeCat /* any others? */;
   model salary = grade F1 F2 F3 F4 F5 F6 F7 F8 F9 Gender
Reten Minority P2 P1 AgeCat / selection=LASSO(choose=CV stop=CV) CVDETAILS;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Feb 2019 17:26:24 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-02-07T17:26:24Z</dc:date>
    <item>
      <title>Proc glmselect prediction model with grouping</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glmselect-prediction-model-with-grouping/m-p/533296#M26877</link>
      <description>&lt;P&gt;Novice user here!&amp;nbsp; I am trying to predict salary based on variables such as gender, jobfunction, retention, performance while accounting for the fact that people are in different salary grades which by itself will cause differences in individual salaries from grade to grade.&amp;nbsp; I don't think I am doing this correctly.&amp;nbsp; Can someone please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;title "Selection Method LASSO Using Cross Validation";&lt;BR /&gt;proc glmselect data = train testdata=test&lt;BR /&gt;plots(stepAxis=number)=(criterionPanel ASEPlot CRITERIONPANEL);&lt;BR /&gt;model salary = grade F1 F2 F3 F4 F5 F6 F7 F8 F9 Gender&lt;BR /&gt;Reten Minority P2 P1 AgeCat / selection=LASSO(choose=CV stop=CV) CVDETAILS;&lt;BR /&gt;run;&lt;BR /&gt;%put &amp;amp;=_glsind;&lt;BR /&gt;proc glm data=test;&lt;BR /&gt;model Salary = &amp;amp;_glsind / solution clParm;&lt;BR /&gt;quit;&lt;BR /&gt;ods graphics off;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-glmselect-prediction-model-with-grouping/m-p/533296#M26877</guid>
      <dc:creator>lindawoo</dc:creator>
      <dc:date>2019-02-06T15:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc glmselect prediction model with grouping</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glmselect-prediction-model-with-grouping/m-p/533669#M26878</link>
      <description>&lt;P&gt;You say "&lt;SPAN&gt;I don't think I am doing this correctly." Is there an error? If so, please post the log.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't know the form of your data (you should always post some sample data, when possible), but I'm guessing that you should define some of the variables as classification variables by using the CLASS statement. Any discrete or categorical variable should be on the CLASS statement, like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glmselect data = train testdata=test;
   class Gender Minority AgeCat /* any others? */;
   model salary = grade F1 F2 F3 F4 F5 F6 F7 F8 F9 Gender
Reten Minority P2 P1 AgeCat / selection=LASSO(choose=CV stop=CV) CVDETAILS;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2019 17:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-glmselect-prediction-model-with-grouping/m-p/533669#M26878</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-02-07T17:26:24Z</dc:date>
    </item>
  </channel>
</rss>

