<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/319334</link>
    <title>MATLAB Central Newsreader - scatter plot of raw data from mnrfit()</title>
    <description>Feed for thread: scatter plot of raw data from mnrfit()</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 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.nl/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 20 Apr 2012 11:05:27 +0000</pubDate>
      <title>scatter plot of raw data from mnrfit()</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/319334#874293</link>
      <author>Céldor </author>
      <description>Hi All,&lt;br&gt;
&lt;br&gt;
I have estimated regression model from mnrfit() and draw cumulative probability curves which works all right for me. I would like to see which points these curves are estimated from. Is it possible? It is not straight forward to me because as inputs I provide x continuous variable and y categorical variable with categories 1-5. How can I draw these points?  What I want is equivalence of linear regression when I put data from which I estimate regression. In terms of ordinal probit model I get curves representing cumulative probabilities and I cannot use straight data I have estimated curves from.&lt;br&gt;
&lt;br&gt;
For instance if I have &lt;br&gt;
[B D S] = mnrfit(x,y,'model','ordinal','link','probit');&lt;br&gt;
and&lt;br&gt;
[P PL PH] = mnrval(B,x,'type','cumulative','model','ordinal','link','probit');&lt;br&gt;
&lt;br&gt;
can I use simply P(:,cat) + S.resid(:,cat)? Where are the values the curves were estimated from ? 'cat' is category of my interest?&lt;br&gt;
&lt;br&gt;
Please can someone help with that?</description>
    </item>
    <item>
      <pubDate>Tue, 24 Apr 2012 08:12:07 +0000</pubDate>
      <title>Re: scatter plot of raw data from mnrfit()</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/319334#874676</link>
      <author>Céldor </author>
      <description>"Céldor " &amp;lt;zebik@op.pl&amp;gt; wrote in message &amp;lt;jmrftn$3u1$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have estimated regression model from mnrfit() and draw cumulative probability curves which works all right for me. I would like to see which points these curves are estimated from. Is it possible? It is not straight forward to me because as inputs I provide x continuous variable and y categorical variable with categories 1-5. How can I draw these points?  What I want is equivalence of linear regression when I put data from which I estimate regression. In terms of ordinal probit model I get curves representing cumulative probabilities and I cannot use straight data I have estimated curves from.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; For instance if I have &lt;br&gt;
&amp;gt; [B D S] = mnrfit(x,y,'model','ordinal','link','probit');&lt;br&gt;
&amp;gt; and&lt;br&gt;
&amp;gt; [P PL PH] = mnrval(B,x,'type','cumulative','model','ordinal','link','probit');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; can I use simply P(:,cat) + S.resid(:,cat)? Where are the values the curves were estimated from ? 'cat' is category of my interest?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Please can someone help with that?&lt;br&gt;
&lt;br&gt;
Could someone please confirm whether it is possible or not? Thanks</description>
    </item>
    <item>
      <pubDate>Tue, 24 Apr 2012 12:52:58 +0000</pubDate>
      <title>Re: scatter plot of raw data from mnrfit()</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/319334#874703</link>
      <author>Peter Perkins</author>
      <description>There are examples right in the documentation that are as close to this &lt;br&gt;
as I am aware of.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.mathworks.com/help/toolbox/stats/mnrfit.html"&gt;http://www.mathworks.com/help/toolbox/stats/mnrfit.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
The examples in the doc have a single predictor x that takes on integer &lt;br&gt;
values.  Even for a simple linear regression, it is not a simple matter &lt;br&gt;
to plot versus multiple predictor variables.  With MN response, you have &lt;br&gt;
the added difficulty of (probably) needing to bin the data with respect &lt;br&gt;
to the predictor variable(s) unless it is already discrete.&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On 4/20/2012 7:05 AM, Céldor wrote:&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have estimated regression model from mnrfit() and draw cumulative&lt;br&gt;
&amp;gt; probability curves which works all right for me. I would like to see&lt;br&gt;
&amp;gt; which points these curves are estimated from. Is it possible? It is not&lt;br&gt;
&amp;gt; straight forward to me because as inputs I provide x continuous variable&lt;br&gt;
&amp;gt; and y categorical variable with categories 1-5. How can I draw these&lt;br&gt;
&amp;gt; points? What I want is equivalence of linear regression when I put data&lt;br&gt;
&amp;gt; from which I estimate regression. In terms of ordinal probit model I get&lt;br&gt;
&amp;gt; curves representing cumulative probabilities and I cannot use straight&lt;br&gt;
&amp;gt; data I have estimated curves from.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; For instance if I have [B D S] =&lt;br&gt;
&amp;gt; mnrfit(x,y,'model','ordinal','link','probit');&lt;br&gt;
&amp;gt; and&lt;br&gt;
&amp;gt; [P PL PH] =&lt;br&gt;
&amp;gt; mnrval(B,x,'type','cumulative','model','ordinal','link','probit');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; can I use simply P(:,cat) + S.resid(:,cat)? Where are the values the&lt;br&gt;
&amp;gt; curves were estimated from ? 'cat' is category of my interest?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Please can someone help with that?</description>
    </item>
  </channel>
</rss>
