<?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: Why PROC GENMOD outputs parameter estimates for reference group in the interaction with time in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314298#M16550</link>
    <description>&lt;P&gt;Hi, I firgured out the solution: I need to add param = ref after the class statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class ID Initial_Rythm(ref="3") BIS_0(ref="0") Sex / param = ref  ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So here is the full code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod  data= lda;
     class ID Initial_Rythm(ref="3") BIS_0(ref="0") Sex / param = ref  ;
     model y(event="1") = Initial_Rythm Sex BIS_0*t BIS*t Lactaat*t t /dist = binomial link = logit;
     repeated subject=ID/sorted type=exch;
	 by _Imputation_;
	 ods output GEEEmpPEst = lgparms ;
	 *output out = run_lda p = prob xbeta = logit;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you again, Ksharp. Based on your previous suggestion, I am now able to solve the problem.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2016 13:05:04 GMT</pubDate>
    <dc:creator>bienco88</dc:creator>
    <dc:date>2016-11-25T13:05:04Z</dc:date>
    <item>
      <title>Why PROC GENMOD outputs parameter estimates for reference group in the interaction with time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314063#M16534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I fitted a logistic regression for longitudinal data where the response is a binary variable. I have two variables that are fixed (Sex + Initial_Rythm, both of them are categorical variable) and three variables that changed over time (BIS_0 which is a binary variable, BIS and Lactaat which are two continuous variables).&lt;/P&gt;&lt;P&gt;The model specification is shown here:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod  data= lda;
     class ID Initial_Rythm(ref="3") BIS_0 Sex  ;
     model y(event="1") = Initial_Rythm Sex BIS_0*t BIS*t Lactaat*t t /dist = binomial link = logit;
     repeated subject=ID/sorted type=exch;
	 by _Imputation_;
	 ods output GEEEmpPEst = lgparms ;
	 *output out = run_lda p = prob xbeta = logit;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My questions is that: Why do we have even the parameter estimate for the reference group of the interaction term: BIS_0*t. The output of one of the imputed data sets is given below for your reference:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5995iEF7ACD888BB6205F/image-size/original?v=v2&amp;amp;px=-1" alt="Ask.PNG" title="Ask.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help to clarify this.&lt;/P&gt;&lt;P&gt;I attached in this post the data and the program I used for your convenience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314063#M16534</guid>
      <dc:creator>bienco88</dc:creator>
      <dc:date>2016-11-25T12:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why PROC GENMOD outputs parameter estimates for reference group in the interaction with time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314198#M16543</link>
      <description>&lt;P&gt;Maybe it is using GLM paramterizal method.&lt;/P&gt;
&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod  data= lda;
     class ID Initial_Rythm(ref="3") BIS_0(ref="1") Sex  ;


OR

proc genmod  data= lda;
     class ID Initial_Rythm(ref="3") BIS_0(parm=ref) Sex  ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Nov 2016 03:24:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314198#M16543</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-25T03:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why PROC GENMOD outputs parameter estimates for reference group in the interaction with time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314241#M16546</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I tried the first option but the output remains the same.&lt;/P&gt;&lt;P&gt;The second option gave an error.&lt;/P&gt;&lt;P&gt;Do you have any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 08:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314241#M16546</guid>
      <dc:creator>bienco88</dc:creator>
      <dc:date>2016-11-25T08:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why PROC GENMOD outputs parameter estimates for reference group in the interaction with time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314282#M16548</link>
      <description>&lt;PRE&gt;
Your data give me is not right , Y has four levels .
Check Attachment.


proc import datafile='/folders/myfolders/lda_data.txt' out=lda dbms=csv replace;
delimiter=' ';
run;
proc genmod  data= lda;
where y in (1 12);
     class ID Initial_Rythm BIS_0 Sex/param=ref  ;  /* &amp;lt;---------*/
     model y(event="1") = Initial_Rythm Sex BIS_0*t BIS*t Lactaat*t t /dist = binomial link = logit;
     repeated subject=ID/sorted type=exch;
	 ods output GEEEmpPEst = lgparms ;
	 *output out = run_lda p = prob xbeta = logit;
run;


&lt;/PRE&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13169iD772C0A850B65DAC/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="x.png" title="x.png" /&gt;</description>
      <pubDate>Fri, 25 Nov 2016 11:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314282#M16548</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-25T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why PROC GENMOD outputs parameter estimates for reference group in the interaction with time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314292#M16549</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;Thank you for giving it a try.&lt;/P&gt;&lt;P&gt;Sorry that when I exported data from a .csv file in R (since this blog does not allow to attacht a .csv file, which I don't know why), it created an additional columns (row.names). That was my fault not to command row.names = F.&lt;/P&gt;&lt;P&gt;So please see here the updated data set which should work correctly.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314292#M16549</guid>
      <dc:creator>bienco88</dc:creator>
      <dc:date>2016-11-25T12:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why PROC GENMOD outputs parameter estimates for reference group in the interaction with time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314298#M16550</link>
      <description>&lt;P&gt;Hi, I firgured out the solution: I need to add param = ref after the class statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class ID Initial_Rythm(ref="3") BIS_0(ref="0") Sex / param = ref  ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So here is the full code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod  data= lda;
     class ID Initial_Rythm(ref="3") BIS_0(ref="0") Sex / param = ref  ;
     model y(event="1") = Initial_Rythm Sex BIS_0*t BIS*t Lactaat*t t /dist = binomial link = logit;
     repeated subject=ID/sorted type=exch;
	 by _Imputation_;
	 ods output GEEEmpPEst = lgparms ;
	 *output out = run_lda p = prob xbeta = logit;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you again, Ksharp. Based on your previous suggestion, I am now able to solve the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 13:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-PROC-GENMOD-outputs-parameter-estimates-for-reference-group/m-p/314298#M16550</guid>
      <dc:creator>bienco88</dc:creator>
      <dc:date>2016-11-25T13:05:04Z</dc:date>
    </item>
  </channel>
</rss>

