Subscribe Bookmark RSS Feed

Categorical JSL JMP12 column reference broken?

KarenC

Super User

Joined:

Feb 10, 2013

Ok JSL pros.  I have a script (Performance Summary for Diagnostic Tests) in the script library that works just fine in JMP11.  In JMP12 there is a glitch.  The script calls the categorical platform (which had changes made to it in JMP12) and it doesn't like my column references.  Below is part of a script that will run (don't use the BY variable) on the attached table.  You will get the contingency analysis but if you look in the log you will see an with respect to the categorical platform.  Any ideas? I am on a Mac so if you run this on windows with no error that would be a useful piece of info.

Names Default To Here( 1 );

//Dialog Box for Column Assignments

R = Column Dialog(

  Diagnosis = Col List( "Y, Diagnosis",

  Min Col( 1 ),

  Max Col( 1 )

  ),

  TestRslt = Col List( "X, Test Result",

  Min Col( 1 ),

  Max Col( 1 )

  ),

  Grpby = Col List( "By", Min Col( 0 ), Max Col( 1 ) ),

  HList(

  "Set alpha for confidence intervals: ",

  alpha = EditNumber( .05 )

  )

);

If( r["Button"] == -1,

  Throw( "User cancelled" )

);

DG = Column( R["Diagnosis"] );

RT = Column( R["TestRslt"] );

BYvar = Column( R["Grpby"] );

alpha = R["alpha"];

If( N Items( R["Grpby"] ) == 0,

  BY = 99,

  BY = Column( R["Grpby"] )

);

DiagPtI = Categorical(

  X( Column( R["Diagnosis"] ) ),

  Responses(  Column( R["TestRslt"] ) ),

  Share Chart( 0 ),

  Transposed Freq Chart( 1 ),

  Crosstab Transposed( 1 ),

  By( BY )

);

c = Contingency(

  Y( Column( R["Diagnosis"] ) ),

  X( Column( R["TestRslt"] ) ),

  Contingency Table(

  Count( 1 ),

  Total %( 0 ),

  Col %( 0 ),

  Row %( 0 ),

  Expected( 0 ),

  Deviation( 0 ),

  Cell Chi Square( 0 ),

  Col Cum( 0 ),

  Col Cum %( 0 ),

  Row Cum( 0 ),

  Row Cum %( 0 )

  ),

  Mosaic Plot( 1 ),

  Tests( 0 ),

  By( BY )

);


1 REPLY
melaniedrake

Staff

Joined:

May 30, 2014

This look like a bug. I'll forward it to development. I haven't found a workaround yet, but if I do, I'll post it here.

The problem is solely with the Responses(...) argument to Categorical. X(...) and By(...) are evaluating their contents correctly, but Responses(...) isn't.