<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aptech &#187; Answers for "missing observations"</title>
	<atom:link href="http://www.aptech.com/questions/missing-observations/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aptech.com</link>
	<description></description>
	<lastBuildDate>Fri, 08 Feb 2013 19:12:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>By: Aptech</title>
		<link>http://www.aptech.com/questions/missing-observations/#answer-3103</link>
		<comments>http://www.aptech.com/questions/missing-observations/#answer-3103#comments</comments>
		<pubDate>Fri, 08 Feb 2013 19:12:28 +0000</pubDate>
		<dc:creator>Aptech</dc:creator>
		
		<guid isPermaLink="false">http://www.aptech.com/questions/missing-observations/#answer-3103</guid>
		<description><![CDATA[If your Excel file has literal dots &#8220;.&#8221; in it, then GAUSS is reading them in as a character matrix element. To explain this (and verify that this is what is happening) let&#8217;s work through a simple example. //Create a &#8230; <a href="http://www.aptech.com/questions/missing-observations/#answer-3103">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If your Excel file has literal dots &#8220;.&#8221; in it, then GAUSS is reading them in as a character matrix element. To explain this (and verify that this is what is happening) let&#8217;s work through a simple example.</p>
<pre>
<span style="color:#009900">//Create a vector with dot characters in it</span>
x = { 1, 2, 3, ".", 5, ".", 7 };
print x;
</pre>
<p>This code snippet above will create a 1&#215;7 matrix in which the fourth and sixth elements are equal to the character &#8220;.&#8221;. The print statement will produce this output:</p>
<pre>
       1.00 
       2.00 
       3.00 
       +DEN 
       5.00 
       +DEN 
       7.00
</pre>
<p>
The +DEN is not a specific number, it means that the element is a <a href="http://en.wikipedia.org/wiki/Denormal_number" title="What is a denormal?" target="_blank">denormal</a>. But this particular denormal does have a specific value, it is just not printed out.</p>
<p>You can see that these elements are characters, by using the dollar sign &#8220;$&#8221; modifier with your print statement, like this:</p>
<pre>
<span style="color:#009900">//Print as a character matrix</span>
print $x;
</pre>
<p>This print statement will return just the elements that are characters like this:</p>
<pre>
                 
                 
                 
               . 
                 
               . 
</pre>
<p>Now you can convert these values from a character &#8220;.&#8221; to a GAUSS missing value with the <tt>miss</tt> command.</p>
<pre>
<span style="color:#009900">//Convert all values in 'x' that are equal to a character dot</span>
<span style="color:#009900">//to be equal to a missing value and assign this into 'newx'</span>
newx = miss(x, ".");
print newx;
</pre>
<pre>
       1.00 
       2.00 
       3.00 
          . 
       5.00 
          . 
       7.00 
</pre>
<p>At this point the missing values from the Excel file are now missing values in your GAUSS matrix. The <tt>msym</tt> command does not create missing values, it just allows you to control what GAUSS will display when printing a missing value. For example, if you wanted GAUSS to print MISS instead of the dot, you could accomplish that like this:</p>
<pre>
msym MISS;
print newx;
</pre>
<p>will return:</p>
<pre>
       1.00 
       2.00 
       3.00 
       MISS 
       5.00 
       MISS 
       7.00
</pre>
<p>The <tt>msym</tt> command did not change the missing value, it only changed what GAUSS printed out when it encountered the missing value inside the matrix &#8216;newx&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aptech.com/questions/missing-observations/#answer-3103/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.aptech.com @ 2013-02-09 01:17:21 --