<?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: Question about PROC surveyreg in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Question-about-PROC-surveyreg/m-p/899068#M83010</link>
    <description>&lt;P&gt;Strata and Cluster variables do not belong on the Model statement and will generally throw an error to that effect. I suspect similar with appearance on a CLASS statement. Those variables are supposed to describe the sample design.&lt;/P&gt;
&lt;P&gt;You can cheat and use the values by adding another variable with the same value for the model statement but may be a bit flaky for some purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only have two levels of treatment you likely don't want surveyreg. The procedure is more for continuous, or at least values that are somewhat continuous independent and dependent values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 08:22:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-10-18T08:22:24Z</dc:date>
    <item>
      <title>Question about PROC surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-about-PROC-surveyreg/m-p/899058#M83009</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;BR /&gt;I have a question about PROC surveyreg.&lt;/P&gt;&lt;P&gt;I am using a dataset where treatment (1 or 2)&amp;nbsp; is the independent variable. I am assuming 2 stages of sample selection.&lt;/P&gt;&lt;P&gt;PSU indicates the first stage sampling unit, and SSU the second stage sampling unit. The SSUs are nested within the PSUs.&lt;/P&gt;&lt;P&gt;The PSU are nested within stratum. Stratum is a PSU-level stratification variable.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I wanted to ask if I'm using the correct SAS code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc surveyreg data=output.surv627;&lt;BR /&gt;Class stratum PSU SSU treatment;&lt;BR /&gt;Model Y = treatment|stratum / solution;&lt;BR /&gt;Strata stratum;&lt;BR /&gt;Cluster PSU SSU;&lt;BR /&gt;Weight weight;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 04:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-about-PROC-surveyreg/m-p/899058#M83009</guid>
      <dc:creator>johnrizk</dc:creator>
      <dc:date>2023-10-18T04:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Question about PROC surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-about-PROC-surveyreg/m-p/899068#M83010</link>
      <description>&lt;P&gt;Strata and Cluster variables do not belong on the Model statement and will generally throw an error to that effect. I suspect similar with appearance on a CLASS statement. Those variables are supposed to describe the sample design.&lt;/P&gt;
&lt;P&gt;You can cheat and use the values by adding another variable with the same value for the model statement but may be a bit flaky for some purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only have two levels of treatment you likely don't want surveyreg. The procedure is more for continuous, or at least values that are somewhat continuous independent and dependent values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 08:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-about-PROC-surveyreg/m-p/899068#M83010</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-18T08:22:24Z</dc:date>
    </item>
  </channel>
</rss>

