Re: How to compile JSL statement so that the distribution analysis will automatically change theI want the content of the window to be automatically updated with the selection of the radio box. The previous window is closed and updated with a new one.
Re: 如何编JSL语句让分布分析自动把变化This may be what you are looking for
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
cc = {"height","weight"};
nw = new window("Chooser",
rb= radio box(cc,
theColumn = rb << get;
Distribution( Continuous Distribution( Column( cc[theColumn] ) ) )
)
);Re: How to compile JSL statement so that the distribution analysis will automatically change theThank you so much, that's great!
Re: 如何编JSL语句让分布分析自动把变化See if this is what you want
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
cc = {"height", "weight"};
nw = New Window( "Chooser",
rb = Radio Box(
cc,
theColumn = rb << get;
Try( dis << delete );
vlb << append( dis = Distribution( Continuous Distribution( Column( cc[theColumn] ) ) ) );
),
vlb = V List Box(
dis = Distribution( Continuous Distribution( Column( cc[1] ) ) )
)
);
But what I really think you should use, is the builtin Column Switcher

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Distribution(
Continuous Distribution( Column( :height ), Always use column properties( 1 ) ),
Column Switcher( :height, {:height, :weight} )
);
How to compile JSL statements so that distribution analysis automatically changesI wrote a program, but it doesn't change automatically as I select the value of the radio box.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
cc={"身高", "体重"};
New Window( "Example",
aa=1;
rb = Radio Box( {"身高", "体重"},
aa= rb<<GET></GET>Windows