<?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 glmpower doesnot work?_ repeated time in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485866#M25207</link>
    <description>&lt;P&gt;I think for understanding this model, I will explain more about it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;my main focus is to calculate a number of sample size using glmpower. I directly follow the SAS glmpower&amp;nbsp;reference.&amp;nbsp; In terms of the reference, the limited info means by time and groups. I exactly follow the step as the reference indicated. however GLM doesnot&amp;nbsp;produce f test results and proglm&amp;nbsp;doesnot&amp;nbsp;run with the sas&amp;nbsp;codes indicate in the reference. I want to get multiple simulations using proc&amp;nbsp; powerglm&amp;nbsp;but it doesnot&amp;nbsp;produce any output, as well as code of 'repeated time' does not work( changed a red color).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you share your idea in terms of glmpower&amp;nbsp;not glm.&lt;/P&gt;&lt;P&gt;thank you so much!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 16:55:17 GMT</pubDate>
    <dc:creator>jleexx35</dc:creator>
    <dc:date>2018-08-10T16:55:17Z</dc:date>
    <item>
      <title>Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485799#M25202</link>
      <description>&lt;P&gt;I try to find out a number&amp;nbsp;of sample size and effect size. however, glmpower&amp;nbsp;does not work repeated time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is wrong in the below sas&amp;nbsp;codes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options pagesize=60 linesize=80 pageno=1 nodate;&lt;BR /&gt;data GLMPOWER;&lt;BR /&gt;input treatment $ score6 score12 score18 score24 weight @27 ;&lt;BR /&gt;datalines;&lt;BR /&gt;plac 32 36 39 41 0.5&lt;BR /&gt;treat 35 40 48 50 0.5&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc print data = GLMPOWER;&lt;BR /&gt;TITLE 'GLMPOWER EXAMPLE';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;proc glm data =glmpower;&lt;BR /&gt;class treatment;&lt;BR /&gt;weight weight;&lt;BR /&gt;model score6 score12 score18 score24 = TREATMENT;&lt;BR /&gt;repeated TIME;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLMPOWER DATA=GLMPOWER;&lt;/P&gt;&lt;P&gt;CLASS TREATMENT;&lt;BR /&gt;WEIGHT WEIGHT;&lt;BR /&gt;MODEL score6 score12 score18 score24 = TREATMENT;&lt;BR /&gt;repeated TIME;&lt;BR /&gt;POWER&lt;BR /&gt;EFFECTS=(TREATMENT)&lt;BR /&gt;MTEST = HLT&lt;BR /&gt;ALPHA = 0.05&lt;BR /&gt;POWER= .9&lt;BR /&gt;NTOTAL = .&lt;BR /&gt;STDDEV= 3.2&lt;BR /&gt;MATRIX("WELLCORR") = LEAR(.6, 1, 4, 1 2 3 4)&lt;BR /&gt;CORRMAT = "WELLCORR"&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc glmpower data =glmpower;&lt;BR /&gt;class treatment;&lt;BR /&gt;weight weight;&lt;BR /&gt;model score6 score12 score18 score24 = treatment;&lt;BR /&gt;repeated time;&lt;BR /&gt;power&lt;BR /&gt;effects = (Treatment)&lt;BR /&gt;mtest= hlt&lt;BR /&gt;alpha= 0.05&lt;BR /&gt;ntotal= 800&lt;BR /&gt;power=.&lt;BR /&gt;stddev= 3.2&lt;BR /&gt;matrix ("wellCorr") = lear( .6, 1,4, 1 2 3 4)&lt;BR /&gt;Corrmat= "WellCorr";&lt;BR /&gt;plot x= n min=6 step= 3&lt;BR /&gt;vary (symbol by stddev, panel by dependent source)&lt;BR /&gt;xopts = (ref= 15 30 crossref= yes);&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 14:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485799#M25202</guid>
      <dc:creator>jleexx35</dc:creator>
      <dc:date>2018-08-10T14:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485806#M25203</link>
      <description>&lt;P&gt;The is very clear about what happens:&lt;/P&gt;
&lt;PRE&gt;9    proc glm data =glmpower;
10   class treatment;
11   weight weight;
12   model score6 score12 score18 score24 = TREATMENT;
13   repeated TIME;
14   run;

&lt;FONT color="#ff0000"&gt;NOTE: No multivariate tests performed for TIME due to &lt;FONT size="4"&gt;&lt;STRONG&gt;insufficient error degrees of freedom&lt;/STRONG&gt;&lt;/FONT&gt;.
&lt;/FONT&gt;

NOTE: No multivariate tests performed for TIME*treatment due to insufficient error degrees of
      freedom.

&lt;/PRE&gt;
&lt;P&gt;Your example data does not have enough records to get enough degrees of freedom to do requested actions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 15:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485806#M25203</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-10T15:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485828#M25204</link>
      <description>&lt;P&gt;In your correction,&amp;nbsp; doesnot solve the problem still&amp;nbsp; if added more subject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options pagesize=60 linesize=80 pageno=1 nodate;&lt;BR /&gt;data GLMPOWER;&lt;BR /&gt;input treatment $ score6 score12 score18 score24 weight @27 ;&lt;BR /&gt;datalines;&lt;BR /&gt;plac 41 50 61 32 0.5&lt;BR /&gt;treat 41 39 72 80 0.5&lt;BR /&gt;plac 41 32 12 23 0.5&lt;BR /&gt;plac 40 30 12 11 0.5&lt;BR /&gt;treat 41 36 39 41 0.5&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc print data = GLMPOWER;&lt;BR /&gt;TITLE 'GLMPOWER EXAMPLE';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;proc glm data =glmpower;&lt;BR /&gt;class treatment;&lt;BR /&gt;weight weight;&lt;BR /&gt;model score6 score12 score18 score24 = TREATMENT;&lt;BR /&gt;repeated TIME;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC GLMPOWER DATA=GLMPOWER;&lt;BR /&gt;CLASS TREATMENT;&lt;BR /&gt;WEIGHT WEIGHT;&lt;BR /&gt;MODEL score6 score12 score18 score24 = TREATMENT;&lt;BR /&gt;repeated TIME;&lt;BR /&gt;POWER&lt;BR /&gt;EFFECTS=(TREATMENT)&lt;BR /&gt;UEPSDEF=HF&lt;BR /&gt;ALPHA = 0.05&lt;BR /&gt;POWER= .9&lt;BR /&gt;NTOTAL = .&lt;BR /&gt;STDDEV= 3.2&lt;BR /&gt;MATRIX("WELLCORR") = LEAR(.6, 1, 4, 1 2 3 4)&lt;BR /&gt;CORRMAT = "WELLCORR"&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;UEPSDEF=HF&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc glmpower data =glmpower;&lt;BR /&gt;class treatment;&lt;BR /&gt;weight weight;&lt;BR /&gt;model score6 score12 score18 score24 = treatment;&lt;BR /&gt;repeated time;&lt;BR /&gt;power&lt;BR /&gt;effects = (Treatment)&lt;BR /&gt;mtest= hlt&lt;BR /&gt;alpha= 0.05&lt;BR /&gt;ntotal= 800&lt;BR /&gt;power=.&lt;BR /&gt;stddev= 3.2&lt;BR /&gt;matrix ("wellCorr") = lear( .6, 1,4, 1 2 3 4)&lt;BR /&gt;Corrmat= "WellCorr";&lt;BR /&gt;plot x= n min=6 step= 3&lt;BR /&gt;vary (symbol by stddev, panel by dependent source)&lt;BR /&gt;xopts = (ref= 15 30 crossref= yes);&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 15:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485828#M25204</guid>
      <dc:creator>jleexx35</dc:creator>
      <dc:date>2018-08-10T15:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485846#M25205</link>
      <description>&lt;P&gt;What makes you think is not working:&lt;/P&gt;
&lt;P&gt;I get this as part of the results when I run your code:&lt;/P&gt;
&lt;DIV class="l proctitle"&gt;The GLM Procedure&lt;/DIV&gt;
&lt;DIV class="l proctitle"&gt;Repeated Measures Analysis of Variance&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" cellspacing="0" cellpadding="3" summary="Procedure GLM: Level Information"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c m header" colspan="5" scope="colgroup"&gt;Repeated Measures Level Information&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r m header" scope="col"&gt;Dependent&amp;nbsp;Variable&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;score6&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;score12&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;score18&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;score24&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r m rowheader" scope="row"&gt;Level of TIME&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;2&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A name="IDX20" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" cellspacing="0" cellpadding="3" summary="Procedure GLM: Multivariate Tests"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c m header" colspan="6" scope="colgroup"&gt;MANOVA Test Criteria and Exact F Statistics for the Hypothesis of no TIME Effect&lt;BR /&gt;H = Type III SSCP Matrix for TIME&lt;BR /&gt;E = Error SSCP Matrix&lt;BR /&gt;&lt;BR /&gt;S=1 M=0.5 N=-0.5&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m header" scope="col"&gt;Statistic&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Value&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;F Value&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Num&amp;nbsp;DF&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Den&amp;nbsp;DF&lt;/TH&gt;
&lt;TH class="r m header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;F&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;Wilks' Lambda&lt;/TH&gt;
&lt;TD class="r data"&gt;0.13491054&lt;/TD&gt;
&lt;TD class="r data"&gt;2.14&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4569&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;Pillai's Trace&lt;/TH&gt;
&lt;TD class="r data"&gt;0.86508946&lt;/TD&gt;
&lt;TD class="r data"&gt;2.14&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4569&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;Hotelling-Lawley Trace&lt;/TH&gt;
&lt;TD class="r data"&gt;6.41231951&lt;/TD&gt;
&lt;TD class="r data"&gt;2.14&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4569&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;Roy's Greatest Root&lt;/TH&gt;
&lt;TD class="r data"&gt;6.41231951&lt;/TD&gt;
&lt;TD class="r data"&gt;2.14&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4569&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A name="IDX21" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" cellspacing="0" cellpadding="3" summary="Procedure GLM: Multivariate Tests"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c m header" colspan="6" scope="colgroup"&gt;MANOVA Test Criteria and Exact F Statistics for the Hypothesis of no TIME*treatment Effect&lt;BR /&gt;H = Type III SSCP Matrix for TIME*treatment&lt;BR /&gt;E = Error SSCP Matrix&lt;BR /&gt;&lt;BR /&gt;S=1 M=0.5 N=-0.5&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m header" scope="col"&gt;Statistic&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Value&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;F Value&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Num&amp;nbsp;DF&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Den&amp;nbsp;DF&lt;/TH&gt;
&lt;TH class="r m header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;F&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;Wilks' Lambda&lt;/TH&gt;
&lt;TD class="r data"&gt;0.26090443&lt;/TD&gt;
&lt;TD class="r data"&gt;0.94&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.6209&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;Pillai's Trace&lt;/TH&gt;
&lt;TD class="r data"&gt;0.73909557&lt;/TD&gt;
&lt;TD class="r data"&gt;0.94&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.6209&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;Hotelling-Lawley Trace&lt;/TH&gt;
&lt;TD class="r data"&gt;2.83282115&lt;/TD&gt;
&lt;TD class="r data"&gt;0.94&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.6209&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;Roy's Greatest Root&lt;/TH&gt;
&lt;TD class="r data"&gt;2.83282115&lt;/TD&gt;
&lt;TD class="r data"&gt;0.94&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.6209&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A name="IDX22" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485846#M25205</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-10T16:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485856#M25206</link>
      <description>&lt;P&gt;You have a single observation for each treatment. You do not have enough data to do what you want as shown unless you have significantly more data. Nothing is wrong with the code per se.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223929"&gt;@jleexx35&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I try to find out a number&amp;nbsp;of sample size and effect size. however, glmpower&amp;nbsp;does not work repeated time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what is wrong in the below sas&amp;nbsp;codes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options pagesize=60 linesize=80 pageno=1 nodate;&lt;BR /&gt;data GLMPOWER;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/187967"&gt;@input&lt;/a&gt; treatment $ score6 score12 score18 score24 weight @27 ;&lt;BR /&gt;datalines;&lt;BR /&gt;plac 32 36 39 41 0.5&lt;BR /&gt;treat 35 40 48 50 0.5&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc print data = GLMPOWER;&lt;BR /&gt;TITLE 'GLMPOWER EXAMPLE';&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;proc glm data =glmpower;&lt;BR /&gt;class treatment;&lt;BR /&gt;weight weight;&lt;BR /&gt;model score6 score12 score18 score24 = TREATMENT;&lt;BR /&gt;repeated TIME;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC GLMPOWER DATA=GLMPOWER;&lt;/P&gt;
&lt;P&gt;CLASS TREATMENT;&lt;BR /&gt;WEIGHT WEIGHT;&lt;BR /&gt;MODEL score6 score12 score18 score24 = TREATMENT;&lt;BR /&gt;repeated TIME;&lt;BR /&gt;POWER&lt;BR /&gt;EFFECTS=(TREATMENT)&lt;BR /&gt;MTEST = HLT&lt;BR /&gt;ALPHA = 0.05&lt;BR /&gt;POWER= .9&lt;BR /&gt;NTOTAL = .&lt;BR /&gt;STDDEV= 3.2&lt;BR /&gt;MATRIX("WELLCORR") = LEAR(.6, 1, 4, 1 2 3 4)&lt;BR /&gt;CORRMAT = "WELLCORR"&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;ods graphics on;&lt;BR /&gt;proc glmpower data =glmpower;&lt;BR /&gt;class treatment;&lt;BR /&gt;weight weight;&lt;BR /&gt;model score6 score12 score18 score24 = treatment;&lt;BR /&gt;repeated time;&lt;BR /&gt;power&lt;BR /&gt;effects = (Treatment)&lt;BR /&gt;mtest= hlt&lt;BR /&gt;alpha= 0.05&lt;BR /&gt;ntotal= 800&lt;BR /&gt;power=.&lt;BR /&gt;stddev= 3.2&lt;BR /&gt;matrix ("wellCorr") = lear( .6, 1,4, 1 2 3 4)&lt;BR /&gt;Corrmat= "WellCorr";&lt;BR /&gt;plot x= n min=6 step= 3&lt;BR /&gt;vary (symbol by stddev, panel by dependent source)&lt;BR /&gt;xopts = (ref= 15 30 crossref= yes);&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485856#M25206</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-10T16:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485866#M25207</link>
      <description>&lt;P&gt;I think for understanding this model, I will explain more about it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;my main focus is to calculate a number of sample size using glmpower. I directly follow the SAS glmpower&amp;nbsp;reference.&amp;nbsp; In terms of the reference, the limited info means by time and groups. I exactly follow the step as the reference indicated. however GLM doesnot&amp;nbsp;produce f test results and proglm&amp;nbsp;doesnot&amp;nbsp;run with the sas&amp;nbsp;codes indicate in the reference. I want to get multiple simulations using proc&amp;nbsp; powerglm&amp;nbsp;but it doesnot&amp;nbsp;produce any output, as well as code of 'repeated time' does not work( changed a red color).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you share your idea in terms of glmpower&amp;nbsp;not glm.&lt;/P&gt;&lt;P&gt;thank you so much!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485866#M25207</guid>
      <dc:creator>jleexx35</dc:creator>
      <dc:date>2018-08-10T16:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485869#M25208</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223929"&gt;@jleexx35&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I think for understanding this model, I will explain more about it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my main focus is to calculate a number of sample size using glmpower. I directly follow the SAS glmpower&amp;nbsp;reference.&amp;nbsp; In terms of the reference, the limited info means by time and groups. I exactly follow the step as the reference indicated. however GLM doesnot&amp;nbsp;produce f test results and proglm&amp;nbsp;doesnot&amp;nbsp;run with the sas&amp;nbsp;codes indicate in the reference. I want to get multiple simulations using proc&amp;nbsp; powerglm&amp;nbsp;but it doesnot&amp;nbsp;produce any output, as well as code of 'repeated time' does not work( changed a red color).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you share your idea in terms of glmpower&amp;nbsp;not glm.&lt;/P&gt;
&lt;P&gt;thank you so much!!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What reference? Are you trying to calculate a sample size? If so then you would use PROC POWER most likely...&lt;/P&gt;
&lt;P&gt;Please explain what you're trying to achieve instead and then we can help to point you in the correct direction.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485869#M25208</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-10T17:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485874#M25209</link>
      <description>&lt;P&gt;PROC GLM will not run with only the two observations. GLMPOWER works fine. The GLMPOWER, you were missing a semicolon and it seems to require integer weights, so I changed them to 1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data GLMPOWER;
    input treatment $ score6 score12 score18 score24 weight @27;
    datalines;
plac 32 36 39 41 1
treat 35 40 48 50 1
;

proc print data=GLMPOWER;
    TITLE 'GLMPOWER EXAMPLE';
RUN;

PROC GLMPOWER DATA=GLMPOWER;
    CLASS TREATMENT;
    WEIGHT WEIGHT;
    MODEL score6 score12 score18 score24=TREATMENT;
    repeated TIME;
    POWER EFFECTS=(TREATMENT) MTEST=HLT ALPHA=0.05 POWER=.9 NTOTAL=.
STDDEV=3.2 MATRIX("WELLCORR")=LEAR(.6, 1, 4, 1 2 3 4) CORRMAT="WELLCORR";
RUN;

ods graphics on;

proc glmpower data=glmpower;
    class treatment;
    weight weight;
    model score6 score12 score18 score24=treatment;
    repeated time;
    power effects=(Treatment) mtest=hlt alpha=0.05 ntotal=800 power=.
stddev=3.2 matrix ("WELLCORR")=lear(.6, 1, 4, 1 2 3 4) Corrmat="WELLCORR";
    plot x=n min=6 step=3 vary (symbol by stddev, panel by dependent source) 
        xopts=(ref=15 30 crossref=yes);
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485874#M25209</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-10T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485877#M25210</link>
      <description>&lt;P&gt;If proc powerglm&amp;nbsp;codes are fine, please share your output with me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I face continue errors, not codes&amp;nbsp;are not computed at all.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485877#M25210</guid>
      <dc:creator>jleexx35</dc:creator>
      <dc:date>2018-08-10T17:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc glmpower doesnot work?_ repeated time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485878#M25211</link>
      <description>&lt;P&gt;Run the code I posted above and include the errors shown in your response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-Proc-glmpower-doesnot-work-repeated-time/m-p/485878#M25211</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-10T17:14:09Z</dc:date>
    </item>
  </channel>
</rss>

