<?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 How to Score a New Data Set with Accompanying Confidence Limits in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Score-a-New-Data-Set-with-Accompanying-Confidence-Limits/m-p/451309#M23574</link>
    <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Background&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am working with salary data pertaining to two groups of employees&amp;nbsp;(group A and group B) with the purpose of identifying salary equity. One method I have been asked to employ is to run a multiple linear regression model based on group A's data and use the estimates computed from group A's model to predict salaries of each member of group B. Anyone from group B who receives a lower salary than what is predicted by group A's model is then flagged for review. However, what I want to do is flag only those members of group B whose actual salaries fall outside of the confidence limits &lt;SPAN&gt;for the expected value (mean) of the predicted value (LCLM and UCLM in prog glm)&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;My Issue&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since I am executing a multiple linear regression model, proc reg and proc glm are the two procedures at my disposal. I have searched for days trying to figure out how to&amp;nbsp;not only&amp;nbsp;predict group B's salary, but to also compute confidence limits for those predictions as well -- to no avail. I am convinced there must be a way to do this simple task, especially since it seems to be an option in proc logistic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of what I've tried that only produces predicted values for group B with no additional options:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=groupA outest=GroupAModel;
Salary_P: model Salary = x1 x2 x3;
run;

proc score data=groupB score=GroupAModel type=parms predict out=work.GroupBPredict;
var x1 x2 x3;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've also tried proc glm, which will allow me to compute additional statistics for the same data set on which the regression model was run based on. I've not figured out how to do this same thing for a new data set using group A's model.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=groupA;
model Salary =x1 x2 x3;
output out=work.GroupAPredict p=predicted_salary  LCLM=LowerBound UCLM=UpperBound  student=zscore residual=resid / ALPHA=0.05;
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight into how I can use group A's model to predict group B's salary&amp;nbsp;&lt;U&gt;with confidence limits&lt;/U&gt; would be greatly appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: I am using SAS Enterprise Guide 7.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 20:33:41 GMT</pubDate>
    <dc:creator>DFoster</dc:creator>
    <dc:date>2018-04-04T20:33:41Z</dc:date>
    <item>
      <title>How to Score a New Data Set with Accompanying Confidence Limits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Score-a-New-Data-Set-with-Accompanying-Confidence-Limits/m-p/451309#M23574</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Background&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am working with salary data pertaining to two groups of employees&amp;nbsp;(group A and group B) with the purpose of identifying salary equity. One method I have been asked to employ is to run a multiple linear regression model based on group A's data and use the estimates computed from group A's model to predict salaries of each member of group B. Anyone from group B who receives a lower salary than what is predicted by group A's model is then flagged for review. However, what I want to do is flag only those members of group B whose actual salaries fall outside of the confidence limits &lt;SPAN&gt;for the expected value (mean) of the predicted value (LCLM and UCLM in prog glm)&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;My Issue&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since I am executing a multiple linear regression model, proc reg and proc glm are the two procedures at my disposal. I have searched for days trying to figure out how to&amp;nbsp;not only&amp;nbsp;predict group B's salary, but to also compute confidence limits for those predictions as well -- to no avail. I am convinced there must be a way to do this simple task, especially since it seems to be an option in proc logistic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of what I've tried that only produces predicted values for group B with no additional options:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=groupA outest=GroupAModel;
Salary_P: model Salary = x1 x2 x3;
run;

proc score data=groupB score=GroupAModel type=parms predict out=work.GroupBPredict;
var x1 x2 x3;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've also tried proc glm, which will allow me to compute additional statistics for the same data set on which the regression model was run based on. I've not figured out how to do this same thing for a new data set using group A's model.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=groupA;
model Salary =x1 x2 x3;
output out=work.GroupAPredict p=predicted_salary  LCLM=LowerBound UCLM=UpperBound  student=zscore residual=resid / ALPHA=0.05;
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight into how I can use group A's model to predict group B's salary&amp;nbsp;&lt;U&gt;with confidence limits&lt;/U&gt; would be greatly appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: I am using SAS Enterprise Guide 7.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 20:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Score-a-New-Data-Set-with-Accompanying-Confidence-Limits/m-p/451309#M23574</guid>
      <dc:creator>DFoster</dc:creator>
      <dc:date>2018-04-04T20:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Score a New Data Set with Accompanying Confidence Limits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Score-a-New-Data-Set-with-Accompanying-Confidence-Limits/m-p/451319#M23579</link>
      <description>&lt;P&gt;Two methods :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&lt;/P&gt;
&lt;P&gt;Add the Group B data to your data with missing values for the dependent variable. OUTPUT= dataset will include predictions and statistics for Group B data.&lt;/P&gt;
&lt;P&gt;2)&lt;/P&gt;
&lt;P&gt;STORE your fitted model and use proc PLM to get the predicted means and statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These methods work both for proc REG and GLM.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 21:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Score-a-New-Data-Set-with-Accompanying-Confidence-Limits/m-p/451319#M23579</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-04-04T21:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Score a New Data Set with Accompanying Confidence Limits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Score-a-New-Data-Set-with-Accompanying-Confidence-Limits/m-p/451471#M23585</link>
      <description>&lt;P&gt;PG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for such a quick response and simple solution! You've made my week so much better. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 11:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Score-a-New-Data-Set-with-Accompanying-Confidence-Limits/m-p/451471#M23585</guid>
      <dc:creator>DFoster</dc:creator>
      <dc:date>2018-04-05T11:49:42Z</dc:date>
    </item>
  </channel>
</rss>

