You unfortunately cannot specify lambda when using the Fit Least Squares platform. You can specify the number of knots, though. Please see the following script for an example.
Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
fls = dt << Fit Model(
Y( :weight ),
Effects( :height & Knotted( 5 ) ),
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run(
:weight << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
Parameter Estimates( 1 ), Scaled Estimates( 0 ),
Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ),
Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
),
SendToReport(
Dispatch(
{"Response weight"},
"Parameter Estimates",
OutlineBox,
{Close( 0 )}
)
)
);
fls << Prediction Formula;