<?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: How to use the tabulate function with raw data instead of summary statistics? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-the-tabulate-function-with-raw-data-instead-of/m-p/730490#M91345</link>
    <description>&lt;P&gt;The data in each cell can be raw values, if it works out that only one row from the data table populates the cell.&amp;nbsp; Here is an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1709827621501.png" style="width: 694px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61959i5261C6664F806CD4/image-dimensions/694x300?v=v2" width="694" height="300" role="button" title="txnelson_0-1709827621501.png" alt="txnelson_0-1709827621501.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = New Table( "School Report",
	New Column( "Name", character ),
	New Column( "Class", character ),
	New Column( "Semester", character ),
	New Column( "Test", modeling type( ordinal ) ),
	New Column( "Score" )
);

nameList={"Jim","Nancy","Edward"};
classList={"Math","Science","Civics","History","Phys Ed"};
semesterList={"Fall","Spring","Summer"};
testList={1,2,3,4,5};

For Each( {Name}, nameList,
	For Each( {Class}, classList,
		For Each( {Semester}, semesterList,
			For Each( {Test}, testList,
				dt &amp;lt;&amp;lt; add rows(1);
				dt:Name[nrows(dt)] = Name;
				dt:Class[nrows(dt)] = Class;
				dt:Semester[nrows(dt)] = Semester;
				dt:Test[nrows(dt)] = Test;
				dt:Score[nrows(dt)] = Random Integer( 70,100);
			)
		)
	)
);

dt &amp;lt;&amp;lt; Tabulate(
	Change Item Label( Statistics( Sum, "Score" ) ),
	Remove Column Label( Analysis Columns( Score ) ),
	Add Table(
		Column Table(
			Grouping Columns( :Semester, :Test ),
			Analysis Columns( :Score )
		),
		Row Table( Grouping Columns( :Name, :Class ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 16:07:49 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-03-07T16:07:49Z</dc:date>
    <item>
      <title>How to use the tabulate function with raw data instead of summary statistics?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-the-tabulate-function-with-raw-data-instead-of/m-p/730471#M91341</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use the tabulate function with the actual data of a continuous variable and not a summary statistic?&lt;/P&gt;&lt;P&gt;Or in other words: is there a way to create a table with a column and row headers in multiple levels but using the raw data?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Survey2.png" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61948i8A4E0F311727BD87/image-size/small?v=v2&amp;amp;px=200" role="button" title="Survey2.png" alt="Survey2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 14:39:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-the-tabulate-function-with-raw-data-instead-of/m-p/730471#M91341</guid>
      <dc:creator>ContinuousPath3</dc:creator>
      <dc:date>2024-03-07T14:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the tabulate function with raw data instead of summary statistics?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-the-tabulate-function-with-raw-data-instead-of/m-p/730485#M91342</link>
      <description>&lt;P&gt;I'm unclear about what you want to do.&amp;nbsp; But it sounds like the requirement that the tabulate row and column headings need to be nominal is what you want to avoid (if you put a continuous variable into either place, JMP will bin it to make it a nominal variable).&amp;nbsp; If that is your problem, then I think you want to either stack or split columns to create a new data table rather than use the tabulate platform.&amp;nbsp; It sounds like you want to keep all the raw data which means restructuring the data set without summarizing it.&amp;nbsp; I don't think tabulate is the way to do that.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 15:52:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-the-tabulate-function-with-raw-data-instead-of/m-p/730485#M91342</guid>
      <dc:creator>dlehman1</dc:creator>
      <dc:date>2024-03-07T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the tabulate function with raw data instead of summary statistics?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-the-tabulate-function-with-raw-data-instead-of/m-p/730490#M91345</link>
      <description>&lt;P&gt;The data in each cell can be raw values, if it works out that only one row from the data table populates the cell.&amp;nbsp; Here is an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1709827621501.png" style="width: 694px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61959i5261C6664F806CD4/image-dimensions/694x300?v=v2" width="694" height="300" role="button" title="txnelson_0-1709827621501.png" alt="txnelson_0-1709827621501.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = New Table( "School Report",
	New Column( "Name", character ),
	New Column( "Class", character ),
	New Column( "Semester", character ),
	New Column( "Test", modeling type( ordinal ) ),
	New Column( "Score" )
);

nameList={"Jim","Nancy","Edward"};
classList={"Math","Science","Civics","History","Phys Ed"};
semesterList={"Fall","Spring","Summer"};
testList={1,2,3,4,5};

For Each( {Name}, nameList,
	For Each( {Class}, classList,
		For Each( {Semester}, semesterList,
			For Each( {Test}, testList,
				dt &amp;lt;&amp;lt; add rows(1);
				dt:Name[nrows(dt)] = Name;
				dt:Class[nrows(dt)] = Class;
				dt:Semester[nrows(dt)] = Semester;
				dt:Test[nrows(dt)] = Test;
				dt:Score[nrows(dt)] = Random Integer( 70,100);
			)
		)
	)
);

dt &amp;lt;&amp;lt; Tabulate(
	Change Item Label( Statistics( Sum, "Score" ) ),
	Remove Column Label( Analysis Columns( Score ) ),
	Add Table(
		Column Table(
			Grouping Columns( :Semester, :Test ),
			Analysis Columns( :Score )
		),
		Row Table( Grouping Columns( :Name, :Class ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 16:07:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-the-tabulate-function-with-raw-data-instead-of/m-p/730490#M91345</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-07T16:07:49Z</dc:date>
    </item>
  </channel>
</rss>

