<?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: PROC GLIMMIX - generating predicted probabilities at specified covariate values in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643727#M30866</link>
    <description>&lt;P&gt;To do this, you can append some observations to the input data set named hip, with missing values for the response variable TXAstatus. These records that you append ought to have the 7 variables constant, and a changing value for anesth. Then run the model again with the OUTPUT statement, and predicted values for different anesthesiologist, with everything else held constant, will be written to the output data set GLIMMIXOUT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There other ways to do this is using the STORE statement in PROC GLIMMIX followed by PROC PLM, examples are in the SAS documentation.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 21:11:39 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-04-28T21:11:39Z</dc:date>
    <item>
      <title>PROC GLIMMIX - generating predicted probabilities at specified covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643726#M30865</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using proc glimmix to run a multilevel logistic regression model. My goal is to somewhat artificially evaluate the variability in outcome attributed to the categorical variable anesthesiologist (anesth). The code for the model is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glimmix data=hip method=Laplace;&lt;BR /&gt;class anesth surgeon sex admitCategory year;&lt;BR /&gt;model TXAstatus = age preopHb sex admitCategory Charlson_score year / solution dist=binomial link=logit;&lt;BR /&gt;random anesth surgeon;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;To do so, I would like to generate predicted probabilities of TXA use holding everything constant except the anesthesiologist (determined based on the mean of continuous variables, and the most frequent observation in categorical variables). Ie,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sex="F";&lt;BR /&gt;age=68.1;&lt;BR /&gt;Charlson_score=0;&lt;BR /&gt;preopHb=130.37;&lt;BR /&gt;admitCategory="Elective";&lt;BR /&gt;year=2014;&lt;BR /&gt;surgeon="3103";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know how to generate predicted probabilities with the output statement:&lt;/P&gt;
&lt;P&gt;output out=glimmixout pred( blup ilink) = PredProbAnesthonly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although can't figure out how to hold the other covariates constant. I've also considered lsmeans, although that doesn't work because anesth is a random effects variable and not incorporated into the model statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice would be very much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 20:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643726#M30865</guid>
      <dc:creator>bretthouston</dc:creator>
      <dc:date>2020-04-28T20:55:32Z</dc:date>
    </item>
    <item>
      <title>Proc glimmix - generating predicted probabilities with specified covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643723#M30874</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using proc glimmix to run a multilevel logistic regression model. My goal is to somewhat artificially evaluate the variability in outcome attributed to the categorical variable anesthesiologist (anesth). The code for the model is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glimmix data=hip method=Laplace;&lt;BR /&gt;class anesth surgeon sex admitCategory year;&lt;BR /&gt;model TXAstatus = age preopHb sex admitCategory Charlson_score year / solution dist=binomial link=logit;&lt;BR /&gt;random anesth surgeon;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;To do so, I would like to generate predicted probabilities of TXA use holding everything constant except the anesthesiologist (determined based on the mean of continuous variables, and the most frequent observation in categorical variables). Ie,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sex="F";&lt;BR /&gt;age=68.1;&lt;BR /&gt;Charlson_score=0;&lt;BR /&gt;preopHb=130.37;&lt;BR /&gt;admitCategory="Elective";&lt;BR /&gt;year=2014;&lt;BR /&gt;surgeon="3103";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know how to generate predicted probabilities with the output statement:&lt;/P&gt;
&lt;P&gt;output out=glimmixout pred( blup ilink) = PredProbAnesthonly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although can't figure out how to hold the other covariates constant. I've also considered lsmeans, although that doesn't work because anesth is a random effects variable and not incorporated into the model statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice would be very much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 20:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643723#M30874</guid>
      <dc:creator>bretthouston</dc:creator>
      <dc:date>2020-04-28T20:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX - generating predicted probabilities at specified covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643727#M30866</link>
      <description>&lt;P&gt;To do this, you can append some observations to the input data set named hip, with missing values for the response variable TXAstatus. These records that you append ought to have the 7 variables constant, and a changing value for anesth. Then run the model again with the OUTPUT statement, and predicted values for different anesthesiologist, with everything else held constant, will be written to the output data set GLIMMIXOUT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There other ways to do this is using the STORE statement in PROC GLIMMIX followed by PROC PLM, examples are in the SAS documentation.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 21:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643727#M30866</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-28T21:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX - generating predicted probabilities at specified covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643731#M30867</link>
      <description>Thank-you, this is incredibly helpful. I really appreciate it!</description>
      <pubDate>Tue, 28 Apr 2020 21:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-generating-predicted-probabilities-at-specified/m-p/643731#M30867</guid>
      <dc:creator>bretthouston</dc:creator>
      <dc:date>2020-04-28T21:37:47Z</dc:date>
    </item>
  </channel>
</rss>

