<?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: Weights for each variable in Logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964863#M48392</link>
    <description>Yes, true. Have to think about it a bit more:). Basically, I would like to&lt;BR /&gt;reduce the importance of 2 variables based on business rules.&lt;BR /&gt;</description>
    <pubDate>Tue, 22 Apr 2025 21:57:00 GMT</pubDate>
    <dc:creator>jitb</dc:creator>
    <dc:date>2025-04-22T21:57:00Z</dc:date>
    <item>
      <title>Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964853#M48388</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would it be correct to assign weights to variables based on the inverse of their variance? The weights could be normalized to total to 1. Say, I have a binary(0/1) response variable Y, and 2 independent variables X1 and X2. I assign weights to each as mentioned before, say W1 and W2.&lt;/P&gt;
&lt;P&gt;Could I model as logOdds(Y) =&amp;nbsp; W1*X1 + W2*X2 ? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 20:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964853#M48388</guid>
      <dc:creator>jitb</dc:creator>
      <dc:date>2025-04-22T20:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964854#M48389</link>
      <description>The "weights" that you show (W1 and W2) in the model are the parameter estimates of X1 and X2 which are estimated by the procedure. They are not assigned in advance. There is no way to assign weights to the separate variables in the model. However, you could of course rescale each variable so that their variances are proportional to the weighting that you want. This could be done using the S= option in PROC STANDARD.</description>
      <pubDate>Tue, 22 Apr 2025 20:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964854#M48389</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-04-22T20:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964855#M48390</link>
      <description>Thanks Dave.... actually, I meant multiplying X1 with W1 for each&lt;BR /&gt;observation in the data etc. Is that plausible?&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Apr 2025 20:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964855#M48390</guid>
      <dc:creator>jitb</dc:creator>
      <dc:date>2025-04-22T20:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964856#M48391</link>
      <description>That would affect the variable's variance, so yes, but it will also affect its mean which would in turn affect the estimated parameter.</description>
      <pubDate>Tue, 22 Apr 2025 20:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964856#M48391</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-04-22T20:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964863#M48392</link>
      <description>Yes, true. Have to think about it a bit more:). Basically, I would like to&lt;BR /&gt;reduce the importance of 2 variables based on business rules.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Apr 2025 21:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964863#M48392</guid>
      <dc:creator>jitb</dc:creator>
      <dc:date>2025-04-22T21:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964864#M48393</link>
      <description>&lt;P&gt;Variable importance is usually assessed after fitting the model based on the parameter estimates (standardized in some way) or on a correlation measure like a partial R-square. See &lt;A href="http://support.sas.com/kb/22605" target="_self"&gt;this note&lt;/A&gt; on assessing variable importance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 22:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964864#M48393</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-04-22T22:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964865#M48394</link>
      <description>Thank you, Dave. Yes, I am aware of using standardized estimates for importance. I was thinking if we could assign weights a priori. Maybe it's not a good idea. On an unrelated note, will you be attending SAS Innovate on May 6? Would like to meet if possible. Thanks.</description>
      <pubDate>Tue, 22 Apr 2025 22:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964865#M48394</guid>
      <dc:creator>jitb</dc:creator>
      <dc:date>2025-04-22T22:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964960#M48398</link>
      <description>&lt;P&gt;If I understand your question, the answer is that you can always rescale, but rescaling a variable does NOT change its significance (as measured by p-valuies) in the model.&lt;/P&gt;
&lt;P&gt;If your original model is&amp;nbsp;&lt;BR /&gt;Y = X1&amp;nbsp; X2;&lt;/P&gt;
&lt;P&gt;and then you define Z1=W1*X1 and Z2=W2*X2 for any nonzero values W1 and W2, the new model&lt;/P&gt;
&lt;P&gt;Y = Z1&amp;nbsp; Z2;&lt;/P&gt;
&lt;P&gt;will have different regression coefficient estimates, but the tests for significance (the p-values) will be the same. This is easily seen if you use standardized estimates. See&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2018/08/22/standardized-regression-coefficients.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/08/22/standardized-regression-coefficients.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
set sashelp.class;
X1 = Height;
X2 = Weight;
Z1 = 0.0254*X1;      /* measure height in meters */
Z2 = 0.45359237*X2;  /* measure weight in kilos */
run;

title "Original Model: Inches and Pounds";
proc logistic data=class;
model Sex = X1 X2;
ods select ParameterEstimates;
run;
title "Rescaled Model: Meters and Kilos";
proc logistic data=class;
model Sex = Z1 Z2;
ods select ParameterEstimates;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rick_SAS_0-1745419892188.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106473i9419726179BCE631/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rick_SAS_0-1745419892188.png" alt="Rick_SAS_0-1745419892188.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 14:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964960#M48398</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-04-23T14:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964981#M48399</link>
      <description>Thank you. Rick. Makes sense!</description>
      <pubDate>Wed, 23 Apr 2025 18:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/964981#M48399</guid>
      <dc:creator>jitb</dc:creator>
      <dc:date>2025-04-23T18:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Weights for each variable in Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/965040#M48404</link>
      <description>&lt;P&gt;Weighting is not necessarily needed in logistic regression, unless you are modeling complex survey data or dealing with rare events. See the documentation of PROC SURVEYLOGISTIC for more information of the former and &lt;A href="https://www.sciencedirect.com/science/article/abs/pii/S0950705114000239?via%3Dihub" target="_blank"&gt;Weighted logistic regression for large-scale imbalanced and rare events data - ScienceDirect&lt;/A&gt;&amp;nbsp;and &lt;A href="https://pmc.ncbi.nlm.nih.gov/articles/PMC10445027/#RSOS221226C4" target="_blank"&gt;Improving performance of hurdle models using rare-event weighted logistic regression: an application to maternal mortality data - PMC&lt;/A&gt;&amp;nbsp;for more information of the latter.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 14:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weights-for-each-variable-in-Logistic/m-p/965040#M48404</guid>
      <dc:creator>Season</dc:creator>
      <dc:date>2025-04-24T14:32:22Z</dc:date>
    </item>
  </channel>
</rss>

