I am very new to the JMP program and I was assigned to translate this code into Python. I don't understand what is this function used for so I can't completely convert the code to Python.
col_string = ":FPC 1,:FPC 2,:FPC 3,:FPC 4,:FPC 5,:FPC 6,:FPC 7,:FPC 8,:FPC 9,:FPC 10";
// generate and evaluate a string that defines the Gen Reg Model for all FPCs
Eval(
Parse(
"GenRegFit = dT << Fit Model(
Validation( :Validation ),
Set Degree( 2 ),
Y( :average_leak ),
Effects(Factorial to Degree( "
|| col_string ||
")),
Personality( \!"Generalized Regression\!" ),
Generalized Distribution( \!"LogNormal\!" ),
Run( Set Random Seed( "
|| Char( rand ) ||
" ), Fit( Estimation Method( Pruned Forward Selection ),
Validation Method( \!"Validation Column\!" ) ),) );"
)
);