如何使用JSL保存广义回归的预测公式在分区或线性回归中,“预测公式”或“保存预测公式”会在数据表中创建新列。 在广义回归平台中都不起作用。 在下面的例子中,我怀疑这是因为我实际上想要向广义回归报告中的'Adaptive Lasso with AICc Validation'部分发送消息,而不是顶级的'Oxy的广义回归'。 知道怎么做吗?
dt = Open( "$SAMPLE_DATA/Fitness.JMP" ) //open sample data
//Fit model with variable reduction
lasso = dt << Fit Model(
Y( :Oxy ),
Effects( :Age, :Weight, :Runtime, :RunPulse, :RstPulse, :MaxPulse ),
Personality( "Generalized Regression" ),
Generalized Distribution( "Normal" ),
Run(
Fit(
Estimation Method( Lasso( Adaptive ) ),
Validation Method( AICc )
)
)
);
//Save the prediction formula to the table
lasso << Save Prediction Formula;
lasso << Prediction Formula;
lasso << Get Prediction Formula;
//None of these work, the log returns 'Fit Generalized[]' for each.
Re:如何使用JSL保存广义回归的预测公式完美,谢谢!
Re:如何使用JSL保存广义回归的预测公式保存预测公式需要是Fit语法的一部分
dt = Open( "$SAMPLE_DATA/Fitness.JMP" ) ; //open sample data
//Fit model with variable reduction
lasso = dt << Fit Model(
Y( :Oxy ),
Effects( :Age, :Weight, :Runtime, :RunPulse, :RstPulse, :MaxPulse ),
Personality( "Generalized Regression" ),
Generalized Distribution( "Normal" ),
Run(
Fit(
Estimation Method( Lasso( Adaptive ) ),
Validation Method( AICc),
Save Prediction Formula(1) )
)
);