<?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: I need your help with proc surveyreg and estimate in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/I-need-your-help-with-proc-surveyreg-and-estimate/m-p/770581#M37656</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400430"&gt;@liiiiiiiib&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400430"&gt;@liiiiiiiib&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;1560 MODEL comcat=&lt;STRONG&gt;&lt;FONT color="#008000"&gt;riagendr&lt;/FONT&gt;&lt;/STRONG&gt;/noint solution vadjust=none;&lt;BR /&gt;1561 ESTIMATE 'Male' &lt;STRONG&gt;&lt;FONT color="#008000"&gt;riagendr&lt;/FONT&gt;&lt;/STRONG&gt; 1 0 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;agegroup&lt;/FONT&gt;&lt;/STRONG&gt; 0.5305 0.2992 0.1703 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;riagendr*agegroup&lt;/FONT&gt;&lt;/STRONG&gt; 0.5305 0.2992 0.1703 0 0 0;&lt;BR /&gt;ERROR: Effects used in the ESTIMATE statement must have appeared previously in the MODEL statement.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Add variable &lt;FONT face="courier new,courier"&gt;agegroup&lt;/FONT&gt; and interaction &lt;FONT face="courier new,courier"&gt;riagendr*agegroup&lt;/FONT&gt; to the MODEL statement (after &lt;FONT face="courier new,courier"&gt;riagendr&lt;/FONT&gt;) and the error message should go away. In addition, categorical variable &lt;FONT face="courier new,courier"&gt;agegroup&lt;/FONT&gt; needs to be listed in the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400430"&gt;@liiiiiiiib&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;In addition, I want to output a table by "ods OUTPUT estimates=ageadj_prev2a;", but it doesnt work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The ODS OUTPUT statement requires one of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyreg_details55.htm" target="_blank" rel="noopener"&gt;ODS Table Names&lt;/A&gt;&amp;nbsp;on the left side of the equals sign. (The list of ODS table names is typically found in the "Details" section of the procedure documentation.) You probably mean &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;parameter&lt;/STRONG&gt;estimates&lt;/FONT&gt;, as there is no table&amp;nbsp;&lt;FONT face="courier new,courier"&gt;estimates&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have further questions about PROC SURVEYREG, in particular regarding statistical aspects like the interpretation of results, I'd recommend that you open a new thread in the subforum&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank" rel="noopener"&gt;Statistical Procedures&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 08:53:48 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-09-27T08:53:48Z</dc:date>
    <item>
      <title>I need your help with proc surveyreg and estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/I-need-your-help-with-proc-surveyreg-and-estimate/m-p/770578#M37655</link>
      <description>&lt;P&gt;I am a student and keep getting an error when setting up estimate statements. I'm trying to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;build a model for the association between gender(riegendr) and ComCat. Below is the log, and I keep getting this error message "Effects used in the ESTIMATE statement must have appeared previously in the MODEL statement." I don't understand why I keep getting this - the variables 'comcat' and 'riagendr' are in the model statement. In addition, I want to output a table by "ods OUTPUT estimates=ageadj_prev2a;", but it doesnt work. Does anyone know what I'm doing wrong/can help me out?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYREG data=diffcomcat nomcar;&lt;BR /&gt;1555 STRATA sdmvstra;&lt;BR /&gt;1556 CLUSTER sdmvpsu;&lt;BR /&gt;1557 CLASS riagendr;&lt;BR /&gt;1558 WEIGHT wtmec12yr;&lt;BR /&gt;1559 DOMAIN sub;&lt;BR /&gt;1560 MODEL comcat=riagendr/noint solution vadjust=none;&lt;BR /&gt;1561 ESTIMATE 'Male' riagendr 1 0 agegroup 0.5305 0.2992 0.1703 riagendr*agegroup 0.5305 0.2992 0.1703 0 0 0;&lt;BR /&gt;ERROR: Effects used in the ESTIMATE statement must have appeared previously in the MODEL statement.&lt;BR /&gt;NOTE: the previous statement is delete。&lt;BR /&gt;1562 ESTIMATE 'Female' riagendr 0 1 agegroup 0.5305 0.2992 0.1703 riagendr*agegroup 0 0 0 0.5305 0.2992 0.1703;&lt;BR /&gt;ERROR: Effects used in the ESTIMATE statement must have appeared previously in the MODEL statement.&lt;BR /&gt;NOTE: the previous statement is delete。&lt;BR /&gt;1563 TITLE 'Age-standardized prevalence of persons 18 years and older with comcat-sex';&lt;BR /&gt;1564 run;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 07:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/I-need-your-help-with-proc-surveyreg-and-estimate/m-p/770578#M37655</guid>
      <dc:creator>liiiiiiiib</dc:creator>
      <dc:date>2021-09-27T07:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: I need your help with proc surveyreg and estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/I-need-your-help-with-proc-surveyreg-and-estimate/m-p/770581#M37656</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400430"&gt;@liiiiiiiib&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400430"&gt;@liiiiiiiib&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;1560 MODEL comcat=&lt;STRONG&gt;&lt;FONT color="#008000"&gt;riagendr&lt;/FONT&gt;&lt;/STRONG&gt;/noint solution vadjust=none;&lt;BR /&gt;1561 ESTIMATE 'Male' &lt;STRONG&gt;&lt;FONT color="#008000"&gt;riagendr&lt;/FONT&gt;&lt;/STRONG&gt; 1 0 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;agegroup&lt;/FONT&gt;&lt;/STRONG&gt; 0.5305 0.2992 0.1703 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;riagendr*agegroup&lt;/FONT&gt;&lt;/STRONG&gt; 0.5305 0.2992 0.1703 0 0 0;&lt;BR /&gt;ERROR: Effects used in the ESTIMATE statement must have appeared previously in the MODEL statement.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Add variable &lt;FONT face="courier new,courier"&gt;agegroup&lt;/FONT&gt; and interaction &lt;FONT face="courier new,courier"&gt;riagendr*agegroup&lt;/FONT&gt; to the MODEL statement (after &lt;FONT face="courier new,courier"&gt;riagendr&lt;/FONT&gt;) and the error message should go away. In addition, categorical variable &lt;FONT face="courier new,courier"&gt;agegroup&lt;/FONT&gt; needs to be listed in the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400430"&gt;@liiiiiiiib&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;In addition, I want to output a table by "ods OUTPUT estimates=ageadj_prev2a;", but it doesnt work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The ODS OUTPUT statement requires one of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyreg_details55.htm" target="_blank" rel="noopener"&gt;ODS Table Names&lt;/A&gt;&amp;nbsp;on the left side of the equals sign. (The list of ODS table names is typically found in the "Details" section of the procedure documentation.) You probably mean &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;parameter&lt;/STRONG&gt;estimates&lt;/FONT&gt;, as there is no table&amp;nbsp;&lt;FONT face="courier new,courier"&gt;estimates&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have further questions about PROC SURVEYREG, in particular regarding statistical aspects like the interpretation of results, I'd recommend that you open a new thread in the subforum&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank" rel="noopener"&gt;Statistical Procedures&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 08:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/I-need-your-help-with-proc-surveyreg-and-estimate/m-p/770581#M37656</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-09-27T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: I need your help with proc surveyreg and estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/I-need-your-help-with-proc-surveyreg-and-estimate/m-p/770812#M37686</link>
      <description>Thank you very much!!!!!!!!!!!!!!!!!!!!!!!!!</description>
      <pubDate>Tue, 28 Sep 2021 07:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/I-need-your-help-with-proc-surveyreg-and-estimate/m-p/770812#M37686</guid>
      <dc:creator>liiiiiiiib</dc:creator>
      <dc:date>2021-09-28T07:23:53Z</dc:date>
    </item>
  </channel>
</rss>

