<?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 use the store statement in proc surveylogistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-the-store-statement-in-proc-surveylogistic/m-p/620954#M29915</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am running a logistic regression for survey data using proc surveylogistic. I wanted to save the model so that I could obtain predicted values for all subjects in a different dataset.&lt;/P&gt;&lt;P&gt;Here's my issue:&lt;/P&gt;&lt;P&gt;I'm using the store statement in proc surveylogistic to store the model info. I am also using the Domain statement in proc surveylogistic which gives me an overall analysis, an analysis for TAG = 0, and another analysis for TAG = 1.&lt;/P&gt;&lt;P&gt;If the model outputs 3 regression models, how does the store statement work? Does it store all 3 models? Just one? When I run a dataset through proc plm and use this model, can I specify which model I want it to use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of what my code looks like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data= dir.DF1;&lt;BR /&gt;WEIGHT WT ;&lt;BR /&gt;CLUSTER hosp;&lt;BR /&gt;STRATA stratum_key;&lt;BR /&gt;Class GainCAT3 (ref = "1")&lt;BR /&gt;/param = ref;&lt;BR /&gt;Model CSection(event='1') = GainCAT3 ;&lt;BR /&gt;Domain TAG;&lt;BR /&gt;store dir.Model;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc plm restore = dir.Model;&lt;BR /&gt;score data = NewData out = dir.pred predicted lcml uclm/ ilink;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 19:30:55 GMT</pubDate>
    <dc:creator>Estee</dc:creator>
    <dc:date>2020-01-29T19:30:55Z</dc:date>
    <item>
      <title>How to use the store statement in proc surveylogistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-the-store-statement-in-proc-surveylogistic/m-p/620954#M29915</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am running a logistic regression for survey data using proc surveylogistic. I wanted to save the model so that I could obtain predicted values for all subjects in a different dataset.&lt;/P&gt;&lt;P&gt;Here's my issue:&lt;/P&gt;&lt;P&gt;I'm using the store statement in proc surveylogistic to store the model info. I am also using the Domain statement in proc surveylogistic which gives me an overall analysis, an analysis for TAG = 0, and another analysis for TAG = 1.&lt;/P&gt;&lt;P&gt;If the model outputs 3 regression models, how does the store statement work? Does it store all 3 models? Just one? When I run a dataset through proc plm and use this model, can I specify which model I want it to use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of what my code looks like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data= dir.DF1;&lt;BR /&gt;WEIGHT WT ;&lt;BR /&gt;CLUSTER hosp;&lt;BR /&gt;STRATA stratum_key;&lt;BR /&gt;Class GainCAT3 (ref = "1")&lt;BR /&gt;/param = ref;&lt;BR /&gt;Model CSection(event='1') = GainCAT3 ;&lt;BR /&gt;Domain TAG;&lt;BR /&gt;store dir.Model;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc plm restore = dir.Model;&lt;BR /&gt;score data = NewData out = dir.pred predicted lcml uclm/ ilink;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 19:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-the-store-statement-in-proc-surveylogistic/m-p/620954#M29915</guid>
      <dc:creator>Estee</dc:creator>
      <dc:date>2020-01-29T19:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the store statement in proc surveylogistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-the-store-statement-in-proc-surveylogistic/m-p/620980#M29919</link>
      <description>&lt;P&gt;There is only one model, which contains the parameter TAG. When you score the data, the procedure looks to see whether TAG=0 or 1 or 2 and uses the appropriate formula.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 20:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-the-store-statement-in-proc-surveylogistic/m-p/620980#M29919</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-29T20:10:22Z</dc:date>
    </item>
  </channel>
</rss>

