<?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: Statement corr in Proc power in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713060#M34466</link>
    <description>&lt;P&gt;The correlation is the within-subject correlation over periods in the cross-over design.&amp;nbsp; A mixed model approach is the best way to incorporate this (period as a repeated effect).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 13:31:10 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-01-21T13:31:10Z</dc:date>
    <item>
      <title>Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/712759#M34452</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to use the PROC POWER in SAS to retrieve a number of subject in a study (it is to understand this procedure). I use test=EQUIV_RATIO and I use statements alpha, CV, meanratio, power, lower, upper and npairs=.&lt;/P&gt;&lt;P&gt;This procedure requires the statement CORR and I am wondering how we know what value is the most appropriated ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My study is a crossover 3-periods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clemence&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/712759#M34452</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2021-01-20T16:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/712891#M34456</link>
      <description>&lt;P&gt;Please post your SAS program.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 21:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/712891#M34456</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-20T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/712996#M34459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SAS Program is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc power;&lt;BR /&gt;pairedmeans test=equiv_ratio alpha=0.05 /*because I want an IC to 90%*/&lt;BR /&gt;npairs=.&lt;BR /&gt;meanratio=0.95&lt;BR /&gt;power=0.9&lt;BR /&gt;lower=0.8&lt;BR /&gt;upper=1.25&lt;BR /&gt;corr=-0.04 0&lt;BR /&gt;cv=0.35;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I put corr=0 I obtain 69 pairs necessary and when I test corr=-0.04 , the number of pairs is 72 (it is the number that I want retrieve). But how know what value put for CORR= ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clg&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 07:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/712996#M34459</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2021-01-21T07:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713026#M34460</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;But how know what value put for CORR= ?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The estimates (such as the correlation) are usually based on small pilot studies. For example, you might choose 20 participants for a preliminary study and use the correlation in the preliminary study to plan the larger study.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 10:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713026#M34460</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-21T10:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713050#M34463</link>
      <description>&lt;P&gt;OK thank you for you answer. And, is it the correlation between subjects ? so, we can determined it with a linear mixed model ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clg&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 12:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713050#M34463</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2021-01-21T12:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713060#M34466</link>
      <description>&lt;P&gt;The correlation is the within-subject correlation over periods in the cross-over design.&amp;nbsp; A mixed model approach is the best way to incorporate this (period as a repeated effect).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 13:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713060#M34466</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-01-21T13:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713122#M34467</link>
      <description>&lt;P&gt;Thank you both for your answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clg&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 16:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/713122#M34467</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2021-01-21T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714189#M34521</link>
      <description>&lt;P&gt;For example, I can do this following model ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=DATA method=reml ;&lt;BR /&gt;class usubjid TRT TRTSEQ PERIOD;&lt;BR /&gt;model PARAM= TRT TRTSEQ PERIOD / s cl ddfm=kr ;&lt;BR /&gt;repeated PERIOD / sub=usubjid type=CS;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Will the within-subject correlationbe the "Residual" estimates in table Covariance Parameter Estimates ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Clg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 08:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714189#M34521</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2021-01-26T08:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714242#M34529</link>
      <description>&lt;P&gt;To get correlations, add an R option after the slash in the REPEATED statement.&amp;nbsp; The values in the Covariance Parameter Estimates are not within subject correlations.&amp;nbsp; Note that a CS structure results in equal covariances (and consequently correlations) between any two time points and equal variances at each time point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 13:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714242#M34529</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-01-26T13:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714263#M34533</link>
      <description>Thank you. And, I have a last question, what is the difference between R and Rcorr option ?&lt;BR /&gt;&lt;BR /&gt;Clg</description>
      <pubDate>Tue, 26 Jan 2021 14:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714263#M34533</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2021-01-26T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714273#M34535</link>
      <description>&lt;P&gt;R = blocks of the estimated R matrix (covariances between residuals)&lt;/P&gt;
&lt;P&gt;RCORR = Correlation matrix corresponding to blocks of the estimated R matrix&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default is for the first subject.&amp;nbsp; You can get more (see the MIXED documentation).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 14:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714273#M34535</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-01-26T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Statement corr in Proc power</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714279#M34536</link>
      <description>&lt;P&gt;As Steve indicates, the doc is your friend. Another great tip is to find an example in the doc that is related to your question and modify it to see if you can answer your own question. For example, use the data for &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mixed_examples02.htm&amp;amp;locale=en" target="_self"&gt;the repeated measure example&lt;/A&gt; and run this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=pr method=ml covtest;
   class Person Gender;
   model y = Gender Age Gender*Age / s;
   repeated / type=cs subject=Person r rcorr;
   ods select R RCorr;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will see that the R matrix does not have 1s on the diagonal. In contrast, the RCORR option scales the R estimates so that the resulting matrix has 1s on the diagonal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 14:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-corr-in-Proc-power/m-p/714279#M34536</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-26T14:40:17Z</dc:date>
    </item>
  </channel>
</rss>

