<?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: Logistic analysis of cumulative percentages in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-analysis-of-cumulative-percentages/m-p/283114#M14913</link>
    <description>&lt;P&gt;You are right. What you are trying to estimate is the distribution of &lt;EM&gt;time.&amp;nbsp;&lt;/EM&gt;One way to do such estimation is survival (or reliability) analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
    input n n_cum pct time;
datalines;
0    0    0    15
2    2    0.05    45.5
10    12    0.3    75.5
17    29    0.725    120.5
4    33    0.825    165.5
5    38    0.95    225.5
2    40    1    318
0    40    1    410
;

proc lifereg data=have;
model time = / distribution=llogistic;
weight n;
probplot / pupper=99.5 plower=0.5 ppout;
inset scale;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3980i8CD658F466BAA094/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="ProbPlot20.png" title="ProbPlot20.png" /&gt;&lt;/P&gt;
&lt;P&gt;You would probably get a better fit if your times were not so coarsely binned.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jul 2016 04:28:08 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-07-09T04:28:08Z</dc:date>
    <item>
      <title>Logistic analysis of cumulative percentages</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-analysis-of-cumulative-percentages/m-p/283002#M14910</link>
      <description>&lt;P&gt;Hi everyone I am trying to analyze cumulative percentages and get a fitted curve. Here is what my data looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" span="4" width="64" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt; width: 48pt;" height="20" width="64"&gt;n&lt;/TD&gt;
&lt;TD style="width: 48pt;" width="64"&gt;n_cum&lt;/TD&gt;
&lt;TD style="width: 48pt;" width="64"&gt;pct&lt;/TD&gt;
&lt;TD style="width: 48pt;" width="64"&gt;time&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" align="right" height="20"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" align="right" height="20"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;0.05&lt;/TD&gt;
&lt;TD align="right"&gt;45.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" align="right" height="20"&gt;10&lt;/TD&gt;
&lt;TD align="right"&gt;12&lt;/TD&gt;
&lt;TD align="right"&gt;0.3&lt;/TD&gt;
&lt;TD align="right"&gt;75.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" align="right" height="20"&gt;17&lt;/TD&gt;
&lt;TD align="right"&gt;29&lt;/TD&gt;
&lt;TD align="right"&gt;0.725&lt;/TD&gt;
&lt;TD align="right"&gt;120.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" align="right" height="20"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;33&lt;/TD&gt;
&lt;TD align="right"&gt;0.825&lt;/TD&gt;
&lt;TD align="right"&gt;165.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" align="right" height="20"&gt;5&lt;/TD&gt;
&lt;TD align="right"&gt;38&lt;/TD&gt;
&lt;TD align="right"&gt;0.95&lt;/TD&gt;
&lt;TD align="right"&gt;225.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" align="right" height="20"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;40&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;318&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" align="right" height="20"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;40&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;410&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;input n n_cum pct time;&lt;BR /&gt;datalines;&lt;BR /&gt;0&amp;nbsp;&amp;nbsp; &amp;nbsp;0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &amp;nbsp;&amp;nbsp; 15&lt;BR /&gt;2&amp;nbsp;&amp;nbsp; &amp;nbsp;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.05 &amp;nbsp;&amp;nbsp; 45.5&lt;BR /&gt;10&amp;nbsp;&amp;nbsp; &amp;nbsp;12&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.3 &amp;nbsp;&amp;nbsp; 75.5&lt;BR /&gt;17&amp;nbsp;&amp;nbsp; &amp;nbsp;29&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.725 &amp;nbsp;&amp;nbsp; 120.5&lt;BR /&gt;4&amp;nbsp;&amp;nbsp; &amp;nbsp;33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.825 &amp;nbsp;&amp;nbsp; 165.5&lt;BR /&gt;5&amp;nbsp;&amp;nbsp; &amp;nbsp;38&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.95 &amp;nbsp;&amp;nbsp; 225.5&lt;BR /&gt;2&amp;nbsp;&amp;nbsp; &amp;nbsp;40&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 &amp;nbsp;&amp;nbsp; 318&lt;BR /&gt;0&amp;nbsp;&amp;nbsp; &amp;nbsp;40&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 &amp;nbsp;&amp;nbsp; 410&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I would like to do is fit a curve to the pct (defined as n_cum/40) over time.&amp;nbsp; My initial attempt was to run a logistic regression (where trials is a variable equal to 40)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have; set have; trials=40; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=have plots(only)=effect;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;model n_cum/trials=time / rsquare;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3971i29BAD5FA0DCE4DB5/image-size/original?v=v2&amp;amp;px=-1" alt="fit.png" title="fit.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question to everyone is given that the number of trials is not independent at each time point (40 trials were not performed at each time point) is this still a valid way to run the analysis. My initial thoughts are that the model fit is correct but the standard errors and corresponding confidence intervals and inferential tests are not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 18:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-analysis-of-cumulative-percentages/m-p/283002#M14910</guid>
      <dc:creator>spirto</dc:creator>
      <dc:date>2016-07-08T18:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic analysis of cumulative percentages</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-analysis-of-cumulative-percentages/m-p/283101#M14912</link>
      <description>&lt;PRE&gt;
Why would you do that ? LOGISTIC is only for sparse data ,not continuous data.
If it is not time series analysis , you can use PROC LOESS, PROC ADPDTIVE .....   
some non-parameter regression model.

&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Jul 2016 03:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-analysis-of-cumulative-percentages/m-p/283101#M14912</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-09T03:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic analysis of cumulative percentages</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-analysis-of-cumulative-percentages/m-p/283114#M14913</link>
      <description>&lt;P&gt;You are right. What you are trying to estimate is the distribution of &lt;EM&gt;time.&amp;nbsp;&lt;/EM&gt;One way to do such estimation is survival (or reliability) analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
    input n n_cum pct time;
datalines;
0    0    0    15
2    2    0.05    45.5
10    12    0.3    75.5
17    29    0.725    120.5
4    33    0.825    165.5
5    38    0.95    225.5
2    40    1    318
0    40    1    410
;

proc lifereg data=have;
model time = / distribution=llogistic;
weight n;
probplot / pupper=99.5 plower=0.5 ppout;
inset scale;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3980i8CD658F466BAA094/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="ProbPlot20.png" title="ProbPlot20.png" /&gt;&lt;/P&gt;
&lt;P&gt;You would probably get a better fit if your times were not so coarsely binned.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 04:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-analysis-of-cumulative-percentages/m-p/283114#M14913</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-07-09T04:28:08Z</dc:date>
    </item>
  </channel>
</rss>

