<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Way to Account for Missing Data</title>
	<atom:link href="http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/</link>
	<description>Loren Shure works on design of the MATLAB language at MathWorks. She writes here about once a week on MATLAB programming and related topics.</description>
	<lastBuildDate>Mon, 13 Feb 2012 13:24:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Parul</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-32476</link>
		<dc:creator>Parul</dc:creator>
		<pubDate>Fri, 02 Sep 2011 17:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-32476</guid>
		<description>hi,

thnx a lot..... its amazing code.
it has saved mine hell lot of time... :)

rly thnx.....</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>thnx a lot&#8230;.. its amazing code.<br />
it has saved mine hell lot of time&#8230; :)</p>
<p>rly thnx&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-31053</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-31053</guid>
		<description>Eleanor-

You either need an algorithm to determine which 0s should be replaced by NaN values or you will need to pre-edit the data yourself.

--Loren</description>
		<content:encoded><![CDATA[<p>Eleanor-</p>
<p>You either need an algorithm to determine which 0s should be replaced by NaN values or you will need to pre-edit the data yourself.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eleanor</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-31052</link>
		<dc:creator>Eleanor</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-31052</guid>
		<description>Loren-
I have a different sort of problem with NaNs and 0s. My data has zeros where data is missing, but also has zeros that are real values. Having the missing values as zeros skews my correlations. I want to replace the zeros with NaNs, but only in columns where zeros can&#039;t be real values.</description>
		<content:encoded><![CDATA[<p>Loren-<br />
I have a different sort of problem with NaNs and 0s. My data has zeros where data is missing, but also has zeros that are real values. Having the missing values as zeros skews my correlations. I want to replace the zeros with NaNs, but only in columns where zeros can&#8217;t be real values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neuro11</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-30481</link>
		<dc:creator>neuro11</dc:creator>
		<pubDate>Tue, 21 Jul 2009 12:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-30481</guid>
		<description>hi...Loren thanx for the article,it was quite helpful for me.I was handling some data where i needed a NAN replacement..so nansum type function was not helpful.</description>
		<content:encoded><![CDATA[<p>hi&#8230;Loren thanx for the article,it was quite helpful for me.I was handling some data where i needed a NAN replacement..so nansum type function was not helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-30099</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Tue, 10 Mar 2009 12:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-30099</guid>
		<description>Chris-

MATLAB is smart enough to not convert the logicals to doubles in their entirety before doing the summation.  You can convince yourself on windows by watching the task manager as you perform the operation on a large enough array.

--Loren</description>
		<content:encoded><![CDATA[<p>Chris-</p>
<p>MATLAB is smart enough to not convert the logicals to doubles in their entirety before doing the summation.  You can convince yourself on windows by watching the task manager as you perform the operation on a large enough array.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Rodgers</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-30097</link>
		<dc:creator>Chris Rodgers</dc:creator>
		<pubDate>Tue, 10 Mar 2009 03:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-30097</guid>
		<description>Is a sum over logicals, as in howMany=sum(isnan(DataMatrix)), optimized for speed? It seems inefficient to convert logicals to doubles and then add, especially since it already had to iterate through the entire matrix to do the isnan check.</description>
		<content:encoded><![CDATA[<p>Is a sum over logicals, as in howMany=sum(isnan(DataMatrix)), optimized for speed? It seems inefficient to convert logicals to doubles and then add, especially since it already had to iterate through the entire matrix to do the isnan check.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Davis</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-19556</link>
		<dc:creator>Tim Davis</dc:creator>
		<pubDate>Fri, 26 Oct 2007 02:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-19556</guid>
		<description>Replacing NaN&#039;s with zeros prior to heavy-duty computation is a good thing (assuming that it still gives you the right answer of course).  NaN&#039;s, Inf&#039;s and the like cause the floating-point hardware to slow *way* down.  Try this:

A=rand(2000);
B=rand(2000);
C=nan(2000);
tic; E = A+B ; toc
tic; D = A+C ; toc

The first computation takes 1.3 seconds on my Pentium 4 desktop in MATLAB 7.5.  The 2nd takes 0.1 seconds.  So NaN&#039;s are great when used carefully, but keep an eye on performance if MATLAB seems sluggish when you abuse them.</description>
		<content:encoded><![CDATA[<p>Replacing NaN&#8217;s with zeros prior to heavy-duty computation is a good thing (assuming that it still gives you the right answer of course).  NaN&#8217;s, Inf&#8217;s and the like cause the floating-point hardware to slow *way* down.  Try this:</p>
<p>A=rand(2000);<br />
B=rand(2000);<br />
C=nan(2000);<br />
tic; E = A+B ; toc<br />
tic; D = A+C ; toc</p>
<p>The first computation takes 1.3 seconds on my Pentium 4 desktop in MATLAB 7.5.  The 2nd takes 0.1 seconds.  So NaN&#8217;s are great when used carefully, but keep an eye on performance if MATLAB seems sluggish when you abuse them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt G</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-19284</link>
		<dc:creator>Matt G</dc:creator>
		<pubDate>Sat, 20 Oct 2007 03:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-19284</guid>
		<description>I run into this exact problem all the time.  A few months ago I posted a function in the File Exchange named &quot;ignorenan&quot;.  It also uses the accumarray function but handles n-d data and has an input to specify which dimension to operate on.  Hopefully someone else may find it useful...</description>
		<content:encoded><![CDATA[<p>I run into this exact problem all the time.  A few months ago I posted a function in the File Exchange named &#8220;ignorenan&#8221;.  It also uses the accumarray function but handles n-d data and has an input to specify which dimension to operate on.  Hopefully someone else may find it useful&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Hull</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-18893</link>
		<dc:creator>Doug Hull</dc:creator>
		<pubDate>Fri, 12 Oct 2007 17:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-18893</guid>
		<description>I covered the uses of NaN in graphics in a movie on my blog earlier this week:

http://blogs.mathworks.com/pick/2007/10/08/matlab-basics-video-using-nan-as-placeholder-data-in-graphics/

Doug</description>
		<content:encoded><![CDATA[<p>I covered the uses of NaN in graphics in a movie on my blog earlier this week:</p>
<p><a href="http://blogs.mathworks.com/pick/2007/10/08/matlab-basics-video-using-nan-as-placeholder-data-in-graphics/" rel="nofollow">http://blogs.mathworks.com/pick/2007/10/08/matlab-basics-video-using-nan-as-placeholder-data-in-graphics/</a></p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duane Hanselman</title>
		<link>http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-18891</link>
		<dc:creator>Duane Hanselman</dc:creator>
		<pubDate>Fri, 12 Oct 2007 16:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2007/10/11/a-way-to-account-for-missing-data/#comment-18891</guid>
		<description>For those looking for a partial solution without the stats toolbox, there is #10235 on the file exchange. It demonstrates what Loren illustrates here for all common stat measures.</description>
		<content:encoded><![CDATA[<p>For those looking for a partial solution without the stats toolbox, there is #10235 on the file exchange. It demonstrates what Loren illustrates here for all common stat measures.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

