<?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: How to score a new dataset using estimated parameters from PROC REG in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957691#M83887</link>
    <description>&lt;P&gt;Just use the normal OUTEST= option, like it shows in the examples for PROC SCORE.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=work.have outest=reg_parms_&amp;amp;modeled_ind_var ;
&amp;amp;modeled_ind_var : model &amp;amp;modeled_ind_var = x y z/selection=backward sls=.05;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use that dataset as the SCORE= dataset in your PROC SCORE call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 15:02:29 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-01-30T15:02:29Z</dc:date>
    <item>
      <title>How to score a new dataset using estimated parameters from PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957679#M83885</link>
      <description>&lt;P&gt;Hello! I am using PROC REG to estimate parameters, and I want to use the estimated coefficients for significant (p&amp;lt;.05) variables to score a new dataset for observations which are missing the modeled variable. I can output the parameters using the outest= option but I don't know how to easily apply these parameters to the dataset which has known values for the independent variables but unknown values for the dependent variable. For example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods output SelParmEst=reg_parms_&amp;amp;modeled_ind_var;
proc reg data=work.have;
&amp;amp;modeled_ind_var : model &amp;amp;modeled_ind_var = x y z/selection=backward sls=.05;
run;&lt;/PRE&gt;&lt;P&gt;I see a reference to a SCORE statement for PROC REG, but I must not have the right version of SAS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see this process done in 1 step using PROC DISCRIM, as below.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%let discrim_var=y;
data missing_&amp;amp;discrim_var not_missing_&amp;amp;discrim_var;
set work.have;
if missing(&amp;amp;discrim_var) then output missing_&amp;amp;discrim_var;
else output not_missing_&amp;amp;discrim_var;
run;

proc discrim data=work.have  testdata=work.missing_&amp;amp;discrim_var testout=results_&amp;amp;discrim_var;
.......;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there another procedure that I should be applying than PROC REG?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 12:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957679#M83885</guid>
      <dc:creator>benjamin_2018</dc:creator>
      <dc:date>2025-01-30T12:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to score a new dataset using estimated parameters from PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957681#M83886</link>
      <description>&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Techniques for scoring a regression model in SAS &lt;BR /&gt;By Rick Wicklin on The DO Loop February 19, 2014&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;The missing value trick for scoring a regression model&lt;BR /&gt;By Rick Wicklin on The DO Loop February 17, 2014&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;4 reasons to use PROC PLM for linear regression models in SAS&lt;BR /&gt;By Rick Wicklin on The DO Loop February 11, 2019&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/02/11/proc-plm-regression-models-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/02/11/proc-plm-regression-models-sas.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 12:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957681#M83886</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2025-01-30T12:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to score a new dataset using estimated parameters from PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957691#M83887</link>
      <description>&lt;P&gt;Just use the normal OUTEST= option, like it shows in the examples for PROC SCORE.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=work.have outest=reg_parms_&amp;amp;modeled_ind_var ;
&amp;amp;modeled_ind_var : model &amp;amp;modeled_ind_var = x y z/selection=backward sls=.05;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use that dataset as the SCORE= dataset in your PROC SCORE call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 15:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957691#M83887</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-30T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to score a new dataset using estimated parameters from PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957693#M83888</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 16:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-score-a-new-dataset-using-estimated-parameters-from-PROC/m-p/957693#M83888</guid>
      <dc:creator>benjamin_2018</dc:creator>
      <dc:date>2025-01-30T16:07:47Z</dc:date>
    </item>
  </channel>
</rss>

