<?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 Multiple WLS in the same PROC REG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766345#M37461</link>
    <description>&lt;P&gt;The documentation for &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_toc.htm" target="_self"&gt;PROC REG&lt;/A&gt; is clear:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax03.htm" target="_blank" rel="noopener"&gt;BY&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax06.htm" target="_blank" rel="noopener"&gt;FREQ&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax07.htm" target="_blank" rel="noopener"&gt;ID&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax21.htm" target="_blank" rel="noopener"&gt;VAR&lt;/A&gt;&lt;SPAN&gt;, and&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax22.htm" target="_blank" rel="noopener"&gt;WEIGHT&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;statements are optionally specified &lt;FONT color="#FF0000"&gt;once&lt;/FONT&gt; for the entire PROC step, and they must appear before the first RUN statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you need to use PROC REG with WEIGHT1 and then another PROC REG with WEIGHT2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please change the subject of your &lt;EM&gt;original&lt;/EM&gt; post to something that describes the actual question.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 11:33:24 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-09-07T11:33:24Z</dc:date>
    <item>
      <title>Perform Multivariate WLS in the same PROC REG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766340#M37460</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering how to account for different weights in Multivariate models in PROC REG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%MACRO WILKS(DS,Y1,Y2,regrvars);
proc reg data=&amp;amp;ds;
MOD1: model &amp;amp;y1=&amp;amp;regrvars/SPEC;
WEIGHT WEIGHT1;
MOD2: model &amp;amp;y2=&amp;amp;regrvars/SPEC;
WEIGHT WEIGHT2;
mtest;
run;
quit;
%MEND;

%WILKS(DS=VITAMINA,Y1=BMR,Y2=E_BMR,regrvars=WT CVIT);&lt;/PRE&gt;&lt;P&gt;PROC REG uses WEIGHT2 for weighting both models; instead, I would like to weight mod1 by WEIGHT1 and mod2 by WEIGHT2. How can I achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766340#M37460</guid>
      <dc:creator>SimoneStefano96</dc:creator>
      <dc:date>2021-09-07T11:25:31Z</dc:date>
    </item>
    <item>
      <title>Multiple WLS in the same PROC REG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766345#M37461</link>
      <description>&lt;P&gt;The documentation for &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_toc.htm" target="_self"&gt;PROC REG&lt;/A&gt; is clear:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax03.htm" target="_blank" rel="noopener"&gt;BY&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax06.htm" target="_blank" rel="noopener"&gt;FREQ&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax07.htm" target="_blank" rel="noopener"&gt;ID&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax21.htm" target="_blank" rel="noopener"&gt;VAR&lt;/A&gt;&lt;SPAN&gt;, and&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax22.htm" target="_blank" rel="noopener"&gt;WEIGHT&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;statements are optionally specified &lt;FONT color="#FF0000"&gt;once&lt;/FONT&gt; for the entire PROC step, and they must appear before the first RUN statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you need to use PROC REG with WEIGHT1 and then another PROC REG with WEIGHT2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please change the subject of your &lt;EM&gt;original&lt;/EM&gt; post to something that describes the actual question.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766345#M37461</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-07T11:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple WLS in the same PROC REG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766351#M37462</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for your answer.&lt;/P&gt;&lt;P&gt;I would like to fit a multivariate WLS (bmr, e_bmr as dependent variables; wt, cvit as independent variable) accounting for the specific weights for each model (heteroschedasticity), so to test the overall significance of the model.&lt;/P&gt;&lt;P&gt;As I understand from your reply, it's not possible to do so in one PROC REG only.&lt;/P&gt;&lt;P&gt;Anyway, is there a way to do so, even using other PROCs?&lt;/P&gt;&lt;P&gt;I am a newbie in SAS and statistics, I would very much appreciate every kind of hint!&lt;/P&gt;&lt;P&gt;Kindly regards,&lt;/P&gt;&lt;P&gt;SimoneStefano96&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766351#M37462</guid>
      <dc:creator>SimoneStefano96</dc:creator>
      <dc:date>2021-09-07T11:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple WLS in the same PROC REG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766354#M37463</link>
      <description>&lt;P&gt;Since PROC REG allows only one set of weights, and you want different weights for different Y variables, you may be able to “pre-weight” the data before PROC REG sees it. (Or maybe not, I haven't tried this...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From &lt;A href="https://en.wikipedia.org/wiki/Weighted_least_squares" target="_self"&gt;Wikipedia&lt;/A&gt;, the method is explained beginning with the sentence "&lt;SPAN&gt;When the errors are uncorrelated..."&lt;/SPAN&gt;&lt;/P&gt;
&lt;DL&gt;
&lt;DD&gt;&lt;/DD&gt;
&lt;/DL&gt;</description>
      <pubDate>Tue, 07 Sep 2021 12:41:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766354#M37463</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-07T12:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple WLS in the same PROC REG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766367#M37464</link>
      <description>Thanks, it would actually be a great solution.</description>
      <pubDate>Tue, 07 Sep 2021 12:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-Multivariate-WLS-in-the-same-PROC-REG/m-p/766367#M37464</guid>
      <dc:creator>SimoneStefano96</dc:creator>
      <dc:date>2021-09-07T12:57:13Z</dc:date>
    </item>
  </channel>
</rss>

