Hi all,
I made a code to obtain a data table with contingency table tool information, unfortunately, the table issued is named "Untitled xxx". I would like to know if by scripting it will be possible either to select the last table created and change its name, or to select the table containing Untitled in its name, to rename it at the end ?
The objective is to close the table at each launch if the script to avoid having several tables.
I tried to use Current Data Table () function but it does not work properly (another table is selected).
The code section :
Contingency(
Y( :"Pass/Fail"n ),
X( :Task ),
Contingency Table(
Count( 1, Format( "Fixed Dec", 2, 0 ) ),
Total %( 1, Format( "Fixed Dec", 2, 2 ) ),
Col %( 1, Format( "Fixed Dec", 2, 2 ) ),
Row %( 1, Format( "Fixed Dec", 2, 2 ) ),
Expected( 0, Format( "Best", 3 ) ),
Deviation( 0, Format( "Best", 3 ) ),
Cell Chi Square( 0, Format( "Fixed Dec", 2, 4 ) ),
Col cumulative( 0, Format( "Fixed Dec", 2, 0 ) ),
Col cumulative %( 0, Format( "Fixed Dec", 2, 2 ) ),
Row cumulative( 0, Format( "Fixed Dec", 2, 0 ) ),
Row cumulative %( 0, Format( "Fixed Dec", 2, 2 ) )
),
Mosaic Plot( 0 ),
Make Into Data Table,
);
Thank you !
Best regards