如何在不保存到现有数据表的情况下将预测值保存到矩阵或列表中Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = Bivariate( Y( :Weight ), X( :Height ) )<<GROUP by=""></GROUP>
试过下面的 lis,它不会工作。
val_predict_ls=obj<<保存预测。
回复:如何在不保存到现有数据表的情况下将预测值保存到矩阵或列表中谢谢。
我的尝试是尝试从基于大型数据库的一组预测值中获取一些关键的汇总值,如均值、西格玛等。
看起来,需要按照您的方式保存到数据表中,然后删除它们。回复:如何在不保存到现有数据表的情况下将预测值保存到矩阵或列表中我不确定如何在不在数据表中创建列的情况下创建矩阵,但这是一种在功能上可以执行您想要的操作的方法
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
// Get the groupings for the sex column
Summarize( dt, bysex = by( :sex ) );
obj = Bivariate( Y( :Weight ), X( :Height ) ) << Group by( :sex );
obj << Fit spline( 0.1, Standardized, {Save Predicteds} );
// Create the matricies for the groups and delete the
// columns from the data table
For( i = N Items( bysex ), i >= 1, i--,
Eval(
Parse(
bysex[i] ||
"_Predicted_Matrix = column(dt,N Col(dt))<<GET values=""></GET>