<?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 skip not converged datasets Re: Why I can't store model from proc genmod in SAS studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358241#M2497</link>
    <description>&lt;P&gt;thanks alot! It is working. But some of bootstrapping datasets didn't converge on the current model. I am wondering if there is away to skip those results and only use converged ones?&lt;/P&gt;&lt;P&gt;If there is a indicator in the store model dataset or somewhere can show if it is converged or not?&amp;nbsp;&lt;/P&gt;&lt;P&gt;or when it runs through all datasets, I am wondering if it could be skipped to next dataset if this one won't converge. Sometimes it stopped totally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used proc plm, show the model dataset, but not very informative....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 14:14:20 GMT</pubDate>
    <dc:creator>lzhang2017</dc:creator>
    <dc:date>2017-05-12T14:14:20Z</dc:date>
    <item>
      <title>Why I can't store model from proc genmod in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358100#M2494</link>
      <description>&lt;P&gt;Hello, Sir/Mamda:&lt;BR /&gt;Recently I am doing some bootstrapping by SAS stuido, I found I can't store models from proc genmod, which I can do without any problem in PC SAS. The codes and errors are at below.&lt;BR /&gt;&lt;BR /&gt;Another thing I want to confirm is if SAS 9.4 will provide correct score from Zero inflated model while SAS 9.2 can't? That is reason I am using 9.4 SAS studio now.&lt;BR /&gt;&lt;BR /&gt;/*****************************SAS codes************************************************/&lt;BR /&gt;ods select none;&lt;BR /&gt;ods listing close;&lt;BR /&gt;options mprint mlogic;&lt;BR /&gt;options obs=max;&lt;BR /&gt;data bootsample0;&lt;BR /&gt;set bootsample;&lt;BR /&gt;trd1=0;&lt;BR /&gt;run;&lt;BR /&gt;data bootsample1;&lt;BR /&gt;set bootsample;&lt;BR /&gt;trd1=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;options obs=max;&lt;BR /&gt;%macro mod_bstrap(dist, distnm, y, pre_y);&lt;BR /&gt;proc genmod data=bootsample;&lt;BR /&gt;by replicate;&lt;BR /&gt;class trd1(ref="0") sex dx_dep tscore attempt_bas disorder_bas ideation_bas&lt;BR /&gt;trauma_bas anxi_bas sub_bas age_group;&lt;BR /&gt;model &amp;amp;y=&amp;amp;pre_y trd1 age_group sex anxi_bas sub_bas dx_dep tscore&lt;BR /&gt;attempt_bas disorder_bas ideation_bas trauma_bas /dist=&amp;amp;dist;&lt;BR /&gt;store sasuser.model_&amp;amp;distnm.;&lt;BR /&gt;%if %index(&amp;amp;distnm, lognm) &amp;gt;=1 %then&lt;BR /&gt;%do;&lt;BR /&gt;output out=testout_&amp;amp;distnm(keep=patid trd1 pred00 replicate) pred=pred00;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %index(&amp;amp;distnm, zip) &amp;gt;=1 %then&lt;BR /&gt;%do;&lt;BR /&gt;zeromodel &amp;amp;pre_y trd1 age_group sex anxi_bas sub_bas dx_dep tscore&lt;BR /&gt;attempt_bas disorder_bas ideation_bas trauma_bas;&lt;BR /&gt;%end;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;...&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;/**************************Log file********************************************************/&lt;BR /&gt;284 %mod_bstrap(zip, zip, ihos_los_1yr, log_allpre_los);&lt;BR /&gt;MLOGIC(MOD_BSTRAP): Beginning execution.&lt;BR /&gt;MLOGIC(MOD_BSTRAP): Parameter DIST has value zip&lt;BR /&gt;MLOGIC(MOD_BSTRAP): Parameter DISTNM has value zip&lt;BR /&gt;MLOGIC(MOD_BSTRAP): Parameter Y has value ihos_los_1yr&lt;BR /&gt;MLOGIC(MOD_BSTRAP): Parameter PRE_Y has value log_allpre_los&lt;BR /&gt;MPRINT(MOD_BSTRAP): proc genmod data=bootsample;&lt;BR /&gt;MPRINT(MOD_BSTRAP): by replicate;&lt;BR /&gt;MPRINT(MOD_BSTRAP): class trd1(ref="0") sex dx_dep tscore attempt_bas disorder_bas ideation_bas trauma_bas anxi_bas sub_bas&lt;BR /&gt;age_group;&lt;BR /&gt;MPRINT(MOD_BSTRAP): model ihos_los_1yr=log_allpre_los trd1 age_group sex anxi_bas sub_bas dx_dep tscore attempt_bas disorder_bas&lt;BR /&gt;ideation_bas trauma_bas /dist=zip;&lt;BR /&gt;MPRINT(MOD_BSTRAP): store sasuser.model_zip;&lt;BR /&gt;MLOGIC(MOD_BSTRAP): %IF condition %index(&amp;amp;distnm, lognm) &amp;gt;=1 is FALSE&lt;BR /&gt;MLOGIC(MOD_BSTRAP): %IF condition %index(&amp;amp;distnm, zip) &amp;gt;=1 is TRUE&lt;BR /&gt;MPRINT(MOD_BSTRAP): zeromodel log_allpre_los trd1 age_group sex anxi_bas sub_bas dx_dep tscore attempt_bas disorder_bas&lt;BR /&gt;ideation_bas trauma_bas;&lt;BR /&gt;MPRINT(MOD_BSTRAP): run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR: Write access to member SASUSER.MODEL_ZIP.ITEMSTOR is denied.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE GENMOD used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;MPRINT(MOD_BSTRAP): quit;&lt;BR /&gt;MLOGIC(MOD_BSTRAP): %IF condition %index(&amp;amp;distnm, lognm) &amp;gt;=1 is FALSE&lt;BR /&gt;MLOGIC(MOD_BSTRAP): %IF condition %index(&amp;amp;distnm, tp) &amp;gt;=1 is FALSE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE PLM used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;MPRINT(MOD_BSTRAP): proc plm source=sasuser.model_zip;&lt;BR /&gt;ERROR: The file SASUSER.MODEL_ZIP does not exist or it is not a valid item store.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;MPRINT(MOD_BSTRAP): score data=bootsample0 out=t0_zip_bs(keep=patid pred0 replicate trd1) PREDICTED=pred0 / ilink;&lt;BR /&gt;MPRINT(MOD_BSTRAP): run;&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE PLM used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;MPRINT(MOD_BSTRAP): proc plm source=sasuser.model_zip;&lt;BR /&gt;ERROR: The file SASUSER.MODEL_ZIP does not exist or it is not a valid item store.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;MPRINT(MOD_BSTRAP): score data=bootsample1 out=t1_zip_bs(keep=patid pred0 replicate trd1) PREDICTED=pred0 / ilink;&lt;BR /&gt;MPRINT(MOD_BSTRAP): run;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 02:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358100#M2494</guid>
      <dc:creator>lzhang2017</dc:creator>
      <dc:date>2017-05-12T02:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why I can't store model from proc genmod in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358109#M2495</link>
      <description>&lt;P&gt;SASUSER library is read only on SAS UE. Use a different library and it will work fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 03:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358109#M2495</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-12T03:59:34Z</dc:date>
    </item>
    <item>
      <title>skip not converged datasets Re: Why I can't store model from proc genmod in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358241#M2497</link>
      <description>&lt;P&gt;thanks alot! It is working. But some of bootstrapping datasets didn't converge on the current model. I am wondering if there is away to skip those results and only use converged ones?&lt;/P&gt;&lt;P&gt;If there is a indicator in the store model dataset or somewhere can show if it is converged or not?&amp;nbsp;&lt;/P&gt;&lt;P&gt;or when it runs through all datasets, I am wondering if it could be skipped to next dataset if this one won't converge. Sometimes it stopped totally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used proc plm, show the model dataset, but not very informative....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 14:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358241#M2497</guid>
      <dc:creator>lzhang2017</dc:creator>
      <dc:date>2017-05-12T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: skip not converged datasets Re: Why I can't store model from proc genmod in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358761#M2514</link>
      <description>&lt;P&gt;This article describes &lt;A href="http://blogs.sas.com/content/iml/2015/08/26/convergence-sim.html" target="_self"&gt;"how to monitor convergence during simulation studies in SAS."&lt;/A&gt;&amp;nbsp; The same ideas apply to your bootstrap analysis.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 14:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Why-I-can-t-store-model-from-proc-genmod-in-SAS-studio/m-p/358761#M2514</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-15T14:45:06Z</dc:date>
    </item>
  </channel>
</rss>

