Hi @pmroz ,
I can't duplicate the error you are experiencing without using the same data table. But, your code should be working in general.
I tested something similar out on the Titanic Passengers.jmp file. The below JSL code works and it copy/pastes the contents from the one report (profiler) to the logistic fit plot of the other report. I followed your same basic JSL and it worked.
Names Default to Here( 1 );
fm = Fit Model(
Y( :Survived ),
Effects( :Age ),
Personality( "Generalized Linear Model" ),
GLM Distribution( "Binomial" ),
Link Function( "Logit" ),
Overdispersion Tests and Intervals( 0 ),
Name( "Firth Bias-Adjusted Estimates" )(0),
Run( 1, Profiler( 1, Confidence Intervals( 1 ), Term Value( Age( 29.881, Lock( 0 ), Show( 1 ) ) ) ) )
);
fmrep = fm << report;
lf = Logistic( Y( :Survived ), X( :Age ) );
lfrep = lf << report;
fmrep[framebox( 2 )] << Copy Frame Contents;
lfrep[framebox( 1 )] << paste frame Contents;
I could also get it to work on the Desirability vs Age within the GLM report window.
Names Default to Here( 1 );
fm = Fit Model(
Y( :Survived ),
Effects( :Age ),
Personality( "Generalized Linear Model" ),
GLM Distribution( "Binomial" ),
Link Function( "Logit" ),
Overdispersion Tests and Intervals( 0 ),
Name( "Firth Bias-Adjusted Estimates" )(0),
Run(
1,
Profiler(
1,
Confidence Intervals( 1 ),
Desirability Functions( 1 ),
Term Value( Age( 29.881, Lock( 0 ), Show( 1 ) ) )
)
)
);
fmrep = fm << report;
fmrep[framebox( 2 )] << Copy Frame Contents;
fmrep[framebox( 3 )] << paste frame Contents;
Can you share the data table you're working with?
Hope this helps!,
DS