JSL for Conditional Distribution (Or other platforms)<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Hi
I'm looking for a way that I can script a distribution, but the number of Y's I would want to analyze at once is dependent on user input. Sometimes it's only one column, and other times it might be 5. This is a part of a bigger script which is why i'm attempting to program it.
Ideally I would like something like this..... but the number of "Continuous Distribution" blocks is variable depending on user input.
Distribution(
Continuous Distribution(
column(12),
Quantiles( 0 ),
Vertical( 0 ),
Outlier Box Plot( 0 ),
Customize Summary Statistics( Minimum( 1 ), Maximum( 1 ) )
),
Continuous Distribution(
column(13),
Quantiles( 0 ),
Vertical( 0 ),
Outlier Box Plot( 0 ),
Customize Summary Statistics( Minimum( 1 ), Maximum( 1 ) )
),
);
I tried saving it to an Expr() and evaluating it, but that didn't work out.
Any help is appreciated
Re: JSL for Conditional Distribution (Or other platforms)nice, thanks!
Re: JSL for Conditional Distribution (Or other platforms)Distribution() accepts a list of columns as argument. The example below uses a column dialog to get user input. But any list of columns would work.
Open( "$SAMPLE_DATA/Big Class.jmp" );
coldlg = Column Dialog( cols = ColList( "Variables", DataType( Numeric ) ) );
dist = Distribution(
Column( coldlg["cols"] ),// Exctract list of columns from coldlg
Quantiles( 0 ),
Vertical( 0 ),
Outlier Box Plot( 0 ),
Customize Summary Statistics( Minimum( 1 ), Maximum( 1 ) )
);