<?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: Set Property for Missing Data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Set-Property-for-Missing-Data/m-p/410119#M65987</link>
    <description>&lt;P&gt;If you are trying use Value Labels for missing values . you should be able to use that directly in the Set Property:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col &amp;lt;&amp;lt; Set Property( "Value Labels", {. = "Fail", 1 = "Pass", 0 = "Fail", 999 = "Fail"} );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Also if those 999 are already missing data with "random number"? you could also use Missing Value Codes column property to hide them from analysis:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1629126307676.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35072i18111BF1FA833D78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1629126307676.png" alt="jthi_0-1629126307676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Property("Missing Value Codes", {999})&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Aug 2021 15:05:13 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-08-16T15:05:13Z</dc:date>
    <item>
      <title>Set Property for Missing Data</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Property-for-Missing-Data/m-p/410104#M65986</link>
      <description>&lt;P&gt;Quite certain this is a simple fix for those in the "know" however, i have been struggling to figure it out. I have a pass_fail column when i am doing my limits and need to figure out how to assign "Fail" to missing data.I use the same table to plot distributions so assigning a random number to the missing data could cause problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;Column( dt_split, N Cols( dt_split ) ) &amp;lt;&amp;lt; Set Property( "Value Labels", {1 = "Pass", 0 = "Fail", -999 = "Fail" } );&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	colList = dt_split &amp;lt;&amp;lt; Get Column Names( numeric, string );
	
	foundCols = "";
	
	i = 2;

	For( i = 1, i &amp;lt;= N Items( colList ), i++, 
	
		Spec = Column( dt_split, colList[i] ) &amp;lt;&amp;lt; Get Property( "Spec Limits" );
			
		If( Is Empty( Spec ) == 0, 
			
			dt_split &amp;lt;&amp;lt; New Column( (Column( dt_split, colList[i] ) &amp;lt;&amp;lt; Get Name) || " Pass_Fail" );
				
			If( Is Missing( Try( Spec["LSL"], . ) ) == 0, 
				
				dt_split &amp;lt;&amp;lt; Select Where( As Column( dt_split, colList[i] ) &amp;lt; Spec["LSL"] );
					
				Try( Column( dt_split, N Cols( dt_split ) )[dt_split &amp;lt;&amp;lt; get selected rows] = 0 );
			);
				
			If( Is Missing( Try( Spec["USL"], . ) ) == 0, 
				
				dt_split &amp;lt;&amp;lt; Select Where( As Column( dt_split, colList[i] ) &amp;gt; Spec["USL"], Current Selection( "Extend" ) );
					
				Try( Column( dt_split, N Cols( dt_split ) )[dt_split &amp;lt;&amp;lt; Get Selected Rows] = 0 );
			);
			
			Wait( 0.5 );
				
			dt_split &amp;lt;&amp;lt; Invert Row Selection;
				
			Wait( 0.5 );
			
			ColNotes = Eval( test ) || "_" || "PassFail";
			
			Try( Column( dt_split, N Cols( dt_split ) )[dt_split &amp;lt;&amp;lt; Get Selected Rows] = 1 );
				
			Column( dt_split, N Cols( dt_split ) ) &amp;lt;&amp;lt; Set Property( "Value Labels", {1 = "Pass", 0 = "Fail", -999 = "Fail" } );
			
			Column( dt_split, N Cols( dt_split ) ) &amp;lt;&amp;lt; Set Property( "Value Ordering", {1, 0} );
			
			Column( dt_split, N Cols( dt_split ) ) &amp;lt;&amp;lt; Set Property( "Description", "PASS_FAIL" );
			
			Column( dt_split, N Cols( dt_split ) ) &amp;lt;&amp;lt; Set Property( "Notes", ColNotes );
			
			If( foundCols == "",
				foundCols = ":Name(\!"" || (Column( dt_split, colList[i] ) &amp;lt;&amp;lt; Get Name) || " Pass_Fail\!")",
				foundCols = foundCols || ", " || ":Name(\!"" || (Column( dt_split, colList[i] ) &amp;lt;&amp;lt; Get Name) || " Pass_Fail\!")"
			);
			
		);
		dt_split &amp;lt;&amp;lt; Clear Select;
	);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;col &amp;lt;&amp;lt; Set Property( "Value Labels", {1 = "Pass", 0 = "Fail", 999 = "Fail"} );&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:35:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Property-for-Missing-Data/m-p/410104#M65986</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2023-06-10T23:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Property for Missing Data</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Property-for-Missing-Data/m-p/410119#M65987</link>
      <description>&lt;P&gt;If you are trying use Value Labels for missing values . you should be able to use that directly in the Set Property:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col &amp;lt;&amp;lt; Set Property( "Value Labels", {. = "Fail", 1 = "Pass", 0 = "Fail", 999 = "Fail"} );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Also if those 999 are already missing data with "random number"? you could also use Missing Value Codes column property to hide them from analysis:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1629126307676.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35072i18111BF1FA833D78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1629126307676.png" alt="jthi_0-1629126307676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Property("Missing Value Codes", {999})&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Aug 2021 15:05:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Property-for-Missing-Data/m-p/410119#M65987</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-08-16T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Property for Missing Data</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Property-for-Missing-Data/m-p/410441#M66018</link>
      <description>&lt;P&gt;I did try the ". = "Fail" but it didn't work for me the first time. Is placement in the { } important? I will give it a try again here real soon. BUT, I like the missing value codes property. I will also try that real soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 11:33:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Property-for-Missing-Data/m-p/410441#M66018</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2021-08-17T11:33:07Z</dc:date>
    </item>
  </channel>
</rss>

