Subscribe Bookmark RSS Feed

passing variables to variability chart

rahulsmils

Occasional Contributor

Joined:

Sep 23, 2016

Hi all,

I am new to jmp. So please overlook syntax.

I am trying to plot a variability chart as below:

Variability Chart(

       X( :age :height :gender ),

          ......

----------------

age, gender , height are data columns

I want to make arguments to X variable and store it separately.

Something like declaring first

Xarg_list=[:age :height :gender ]

and then using:

Variability Chart(

       X=Xargs_list;

          ......

----------------

So If I want to add new column of weight or delete any column in list of arguments I just need to change Xargs_list

Xarg_list=[:age :height :gender :weight];


Any help with forming correct syntax is welcome.


Thanks


1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Here is an example that provides the functionality you are seeking.

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

xlist = {"age", "sex"};

dt << Variability Chart(

       Y( :height, :weight ),

       X( Eval( xlist ) ),

       Max Iter( 100 ),

       Conv Limit( 0.00000001 ),

       Number Integration Abscissas( 128 ),

       Number Function Evals( 65536 ),

       Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),

       Std Dev Chart( 1 )

);

It appears that you are not aware that you can get JMP to produce the scripts that you desire, by just interactively running the platform you want, and then clicking on the red triangle and go to "Script" and to request to save the script to the Script Window.  It gives you a leg up in creating your scripts.

Jim
2 REPLIES
Solution

Here is an example that provides the functionality you are seeking.

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

xlist = {"age", "sex"};

dt << Variability Chart(

       Y( :height, :weight ),

       X( Eval( xlist ) ),

       Max Iter( 100 ),

       Conv Limit( 0.00000001 ),

       Number Integration Abscissas( 128 ),

       Number Function Evals( 65536 ),

       Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),

       Std Dev Chart( 1 )

);

It appears that you are not aware that you can get JMP to produce the scripts that you desire, by just interactively running the platform you want, and then clicking on the red triangle and go to "Script" and to request to save the script to the Script Window.  It gives you a leg up in creating your scripts.

Jim
rahulsmils

Occasional Contributor

Joined:

Sep 23, 2016

Thanks, actually i figured out a way to do this by grouping columns into a column group first and then using get column group command to get the items.

However there when doing get column groups the order of columns changed from my original assignment.

I will try this one to see if it retains order.

Thanks !