Hello everyone,
I would like to find a way, using JSL, to precise if I want to "fit separately" or "fit together" when there is missing values different across Y columns.
The following script enables to fit separately:
Fit Group(
Fit Model(
Y( :Y1 ),
Effects( :X ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run()
),
Fit Model(
Y( :Y2 ),
Effects( :X ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run()
)
);
And this one to fit together:
Fit Model(
Y( :Y1, :Y2 ),
Effects( :X ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run()
);
But my problem is that I need to use the Fit Model function, after cliking on a button.
If I insert the previous script in a Button Box it does not work properly and I do not understand why:
new window("test",bb=button box("Fit Model"));
bb<<set function(
Fit Model(
Y( :Y1, :Y2 ),
Effects( :X ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run()
)
);
When I click on the button, JMP opens the window to ask the user if he want to fit separately or fit together, instead of directly fitting together.
Do you have an idea of how I could fix this ?
Thanks in advance.