<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168411</link>
    <title>MATLAB Central Newsreader - coxphfit in Statistics toolbox</title>
    <description>Feed for thread: coxphfit in Statistics toolbox</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 28 Apr 2008 22:57:04 -0400</pubDate>
      <title>coxphfit in Statistics toolbox</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168411#429267</link>
      <author>Jerry </author>
      <description>The &quot;censoring&quot; option for coxphfit in the Statistics&lt;br&gt;
toolbox has the following definition in the Matlab documents&lt;br&gt;
&quot;A boolean array of the same size as Y that is 1 for&lt;br&gt;
observations that are right-censored and 0 for observations&lt;br&gt;
that are observed exactly.&quot; This is exactly opposite to the&lt;br&gt;
common definition in the literature in which 1 is for&lt;br&gt;
observations that are observed exactly (true event) and 0 is&lt;br&gt;
for right-censored observations. Is it a typo in the&lt;br&gt;
documents or the definition of censoring in the Matlab code&lt;br&gt;
is really like that (i.e., opposite to the commonly used one)? &lt;br&gt;
&lt;br&gt;
Thanks very much.</description>
    </item>
    <item>
      <pubDate>Tue, 29 Apr 2008 14:33:36 -0400</pubDate>
      <title>Re: coxphfit in Statistics toolbox</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168411#429393</link>
      <author>Tom Lane</author>
      <description>&lt;br&gt;
&amp;gt; The &quot;censoring&quot; option for coxphfit in the Statistics&lt;br&gt;
&amp;gt; toolbox has the following definition in the Matlab documents&lt;br&gt;
&amp;gt; &quot;A boolean array of the same size as Y that is 1 for&lt;br&gt;
&amp;gt; observations that are right-censored and 0 for observations&lt;br&gt;
&amp;gt; that are observed exactly.&quot; This is exactly opposite to the&lt;br&gt;
&amp;gt; common definition in the literature in which 1 is for&lt;br&gt;
&amp;gt; observations that are observed exactly (true event) and 0 is&lt;br&gt;
&amp;gt; for right-censored observations. Is it a typo in the&lt;br&gt;
&amp;gt; documents or the definition of censoring in the Matlab code&lt;br&gt;
&amp;gt; is really like that (i.e., opposite to the commonly used one)?&lt;br&gt;
&lt;br&gt;
Jerry, it really is like that.  In MATLAB, 1 is &quot;true,&quot; and since the &lt;br&gt;
argument is called &quot;censoring&quot; it indicates observations that are censored.&lt;br&gt;
&lt;br&gt;
I've seen both usages in different references.  If you think there's an &lt;br&gt;
authoritative reference that's opposite what this function expects, please &lt;br&gt;
let me know.&lt;br&gt;
&lt;br&gt;
-- Tom </description>
    </item>
    <item>
      <pubDate>Thu, 01 May 2008 17:24:04 -0400</pubDate>
      <title>Re: coxphfit in Statistics toolbox</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168411#429804</link>
      <author>Jerry </author>
      <description>&amp;gt; Jerry, it really is like that.  In MATLAB, 1 is &quot;true,&quot; &lt;br&gt;
and since the &lt;br&gt;
&amp;gt; argument is called &quot;censoring&quot; it indicates observations &lt;br&gt;
that are censored.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I've seen both usages in different references.  If you &lt;br&gt;
think there's an &lt;br&gt;
&amp;gt; authoritative reference that's opposite what this &lt;br&gt;
function expects, please &lt;br&gt;
&amp;gt; let me know.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Thanks, Tom. In all the references I read (Tibshirani's &lt;br&gt;
Generalized additive models, for example, and many recent &lt;br&gt;
papers in the bioinformatics/biostat literature), it's &lt;br&gt;
defined oppositely to Matlab. But it won't matter as long &lt;br&gt;
as users notice this difference.&lt;br&gt;
&lt;br&gt;
Since the source code is not accessible for this function, &lt;br&gt;
can you provide more specific reference on the algorithm &lt;br&gt;
used? I know two books are listed in the Matlab documents, &lt;br&gt;
is there a particular chapter describing an algorithm that &lt;br&gt;
Matlab implemented exactly?&lt;br&gt;
&lt;br&gt;
Thanks very much.&lt;br&gt;
Jerry&lt;br&gt;
&amp;nbsp;&amp;nbsp;</description>
    </item>
    <item>
      <pubDate>Fri, 02 May 2008 14:31:57 -0400</pubDate>
      <title>Re: coxphfit in Statistics toolbox</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168411#429939</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Jerry &quot; &amp;lt;mricad@yahoo.no000spppam.com&amp;gt; wrote in message &lt;br&gt;
news:fvcubk$men$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&amp;gt; Jerry, it really is like that.  In MATLAB, 1 is &quot;true,&quot;&lt;br&gt;
&amp;gt; and since the&lt;br&gt;
&amp;gt;&amp;gt; argument is called &quot;censoring&quot; it indicates observations&lt;br&gt;
&amp;gt; that are censored.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I've seen both usages in different references.  If you&lt;br&gt;
&amp;gt; think there's an&lt;br&gt;
&amp;gt;&amp;gt; authoritative reference that's opposite what this&lt;br&gt;
&amp;gt; function expects, please&lt;br&gt;
&amp;gt;&amp;gt; let me know.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks, Tom. In all the references I read (Tibshirani's&lt;br&gt;
&amp;gt; Generalized additive models, for example, and many recent&lt;br&gt;
&amp;gt; papers in the bioinformatics/biostat literature), it's&lt;br&gt;
&amp;gt; defined oppositely to Matlab. But it won't matter as long&lt;br&gt;
&amp;gt; as users notice this difference.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Since the source code is not accessible for this function,&lt;br&gt;
&lt;br&gt;
COXPHFIT is an M-file (at least it is in Release R2008a -- I assume it is in &lt;br&gt;
previous releases as well.)  You can edit it and read the code.&lt;br&gt;
&lt;br&gt;
*snip*&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Fri, 02 May 2008 17:40:09 -0400</pubDate>
      <title>Re: coxphfit in Statistics toolbox</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168411#429978</link>
      <author>Tom Lane</author>
      <description>&amp;gt; Since the source code is not accessible for this function,&lt;br&gt;
&amp;gt; can you provide more specific reference on the algorithm&lt;br&gt;
&amp;gt; used? I know two books are listed in the Matlab documents,&lt;br&gt;
&amp;gt; is there a particular chapter describing an algorithm that&lt;br&gt;
&amp;gt; Matlab implemented exactly?&lt;br&gt;
&lt;br&gt;
Jerry, as Steve pointed out you can type &quot;edit coxphfit&quot; to see the code.&lt;br&gt;
&lt;br&gt;
The books &quot;Analysis of Survival Data&quot; by Cox and Oakes (chapter 7), and &lt;br&gt;
&quot;Statistical Models and Methods for Lifetime Data&quot; by Lawless (also chapter &lt;br&gt;
7), are two good references for this material.  The code might not exactly &lt;br&gt;
follow either one step-by-step, but either should be helpful.&lt;br&gt;
&lt;br&gt;
-- Tom </description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 19:00:20 -0400</pubDate>
      <title>Re: coxphfit in Statistics toolbox</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168411#430412</link>
      <author>Jerry </author>
      <description>&quot;Tom Lane&quot; &amp;lt;tlane@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fvfjlp$9jp$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Since the source code is not accessible for this &lt;br&gt;
function,&lt;br&gt;
&amp;gt; &amp;gt; can you provide more specific reference on the &lt;br&gt;
algorithm&lt;br&gt;
&amp;gt; &amp;gt; used? I know two books are listed in the Matlab &lt;br&gt;
documents,&lt;br&gt;
&amp;gt; &amp;gt; is there a particular chapter describing an algorithm &lt;br&gt;
that&lt;br&gt;
&amp;gt; &amp;gt; Matlab implemented exactly?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Jerry, as Steve pointed out you can type &quot;edit coxphfit&quot; &lt;br&gt;
to see the code.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The books &quot;Analysis of Survival Data&quot; by Cox and Oakes &lt;br&gt;
(chapter 7), and &lt;br&gt;
&amp;gt; &quot;Statistical Models and Methods for Lifetime Data&quot; by &lt;br&gt;
Lawless (also chapter &lt;br&gt;
&amp;gt; 7), are two good references for this material.  The code &lt;br&gt;
might not exactly &lt;br&gt;
&amp;gt; follow either one step-by-step, but either should be &lt;br&gt;
helpful.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- Tom &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Thanks very much, Tom. I didn't say it clearly last time --&lt;br&gt;
&amp;nbsp;there is an optimization function (statsfminbx) being &lt;br&gt;
called in coxphfit which sometimes generates some warning &lt;br&gt;
messages that I don't know how to deal with. Is this &lt;br&gt;
function described somewhere? Also, when there is &lt;br&gt;
censoring in the response data, does coxphfit require that &lt;br&gt;
the number of events (ie, exact observations) to be larger &lt;br&gt;
than the number of covariates?&lt;br&gt;
&lt;br&gt;
Thanks again for your help.</description>
    </item>
  </channel>
</rss>

