<?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: Insert 0 if missing Data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769608#M95042</link>
    <description>&lt;P&gt;Without regard to the mechanics of changing missing values in a JMP data table from 'missing' to a numeric zero, you do realize that this change will make a huge difference in whatever analysis or data visualization technique you use in JMP for any variables in the data table where this change has been implemented? I can think of many situations where changing the value from 'missing' to a numeric zero would be a very improper thing to do. Without context of your reasons behind wanting to make this change...I just wanted to possibly alert you or others reading this thread that this type of change could be a very bad idea.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 20:26:44 GMT</pubDate>
    <dc:creator>P_Bartell</dc:creator>
    <dc:date>2024-07-01T20:26:44Z</dc:date>
    <item>
      <title>Insert 0 if missing Data</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769452#M95011</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched for, but I can't find a skip in the Community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Looking for a Script, which simply make out of all missing Datas in my data table a "0" (Zero).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 08:02:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769452#M95011</guid>
      <dc:creator>voy-voy</dc:creator>
      <dc:date>2024-07-01T08:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Insert 0 if missing Data</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769463#M95013</link>
      <description>&lt;P&gt;There are many posts regarding this in the community, here are few (I would suggest checking them in order)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;LI-MESSAGE title="Replace missing values with 0" uid="64614" url="https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64614#U64614" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-MESSAGE title="How do I change a dot to number zero" uid="397702" url="https://community.jmp.com/t5/Discussions/How-do-I-change-a-dot-to-number-zero/m-p/397702#U397702" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-MESSAGE title="Should you Loop through a data table or use Recode, or use Get Rows Where to change values in a data table" uid="381360" url="https://community.jmp.com/t5/Discussions/Should-you-Loop-through-a-data-table-or-use-Recode-or-use-Get/m-p/381360#U381360" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Current Data Table();

nc = dt &amp;lt;&amp;lt; get column names(Numeric);
mat = dt[0, nc];
mat[Loc(mat, .)] = 0;
dt[0, nc] = mat;

Write();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 08:18:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769463#M95013</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-01T08:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert 0 if missing Data</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769464#M95014</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vous avez deux façons pour réaliser ce genre de chose.&lt;/P&gt;&lt;P&gt;La première serait d'utiliser un script comme ceci (prend en compte les colonnes numériques) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

nc = dt &amp;lt;&amp;lt; get column names( Numeric );
For( i = 1, i &amp;lt;= 18, i++,
	Column( nc[i] )[dt &amp;lt;&amp;lt; get rows where( Is Missing( As Column( nc[i] ) ) )] = 0
);

//the end of the loop is the number of your numeric columns&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Ou si vous souhaitez le faire pour une colonne en particulier :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);

// Ouvrir la table de données&amp;nbsp;: Missing Data Pattern.jmp
dt = Open( "$SAMPLE_DATA/Missing Data Pattern.jmp" );


// Nouvelle colonne&amp;nbsp;: Colonne 5
dt &amp;lt;&amp;lt; New Column( "TEST",
	Numeric,
	"Continuous",
	Format( "Best", 12 ),
	Set Formula( If( Is Missing( :Trial 4 ), :TEST = 0, :TEST = :Trial 4 ) );
);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2024 08:20:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769464#M95014</guid>
      <dc:creator>hcarr01</dc:creator>
      <dc:date>2024-07-01T08:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Insert 0 if missing Data</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769467#M95015</link>
      <description>&lt;P&gt;Here is one way of handling it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1719823483163.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65739i3F08D3C6FF9645C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1719823483163.png" alt="txnelson_0-1719823483163.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
For( i = 1, i &amp;lt;= N Cols( dt ), i++,
	If( Column( dt, i ) &amp;lt;&amp;lt; get data type == "Numeric",
		Column( dt, i )[Loc( dt[0, i], . )] = 0
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1719823598822.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65740iB6B630CF6B014AD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1719823598822.png" alt="txnelson_1-1719823598822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This example works, but Jarmo's response is best.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 08:50:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769467#M95015</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-01T08:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Insert 0 if missing Data</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769608#M95042</link>
      <description>&lt;P&gt;Without regard to the mechanics of changing missing values in a JMP data table from 'missing' to a numeric zero, you do realize that this change will make a huge difference in whatever analysis or data visualization technique you use in JMP for any variables in the data table where this change has been implemented? I can think of many situations where changing the value from 'missing' to a numeric zero would be a very improper thing to do. Without context of your reasons behind wanting to make this change...I just wanted to possibly alert you or others reading this thread that this type of change could be a very bad idea.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 20:26:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-0-if-missing-Data/m-p/769608#M95042</guid>
      <dc:creator>P_Bartell</dc:creator>
      <dc:date>2024-07-01T20:26:44Z</dc:date>
    </item>
  </channel>
</rss>

