运行程序后面临相同输出的问题嗨,大家好
我遇到的一个问题是:当我使用不同的原始数据集时会导致什么情况,但是在运行程序之后,两个输出都是相同的。任何解决方案都可以解决这个问
谢谢。
任何答案都很感激。
Re:运行程序后面临相同输出的问题在我第一次回答你的讨论时,我已经证明了你的问题的答案。 但为了进一步说明问题,这里有一个脚本来说明该方法。
Names Default To Here( 1 );
// Open a data table and use the variable "dt" as a pointer to the table
dt = Open( "$SAMPLE_DATA\big class.jmp" );
// Select all females in the data table
dt << select where( :sex == "F" );
// Create a subset of the data table and use the variable "dtSubset" as
// a pointer to the new data table
dtSubset = dt << subset( selected rows( 1 ), selected columns( 0 ) );
// Run a bivariate platform on the original data table, explicitly pointing
// to the table by using the "dt" reference to it
dt << bivariate( x( :Height ), y( :Weight ) );
// Run a Multivariate platform on the subsetted data table, pointing the platform
// to use the subsetted table by pointing to the reference variable "dtSubset"
dtSubset << Multivariate(
Y( :age, :height, :weight ),
Estimation Method( "Row-wise" ),
Matrix Format( "Square" ),
Scatterplot Matrix( Density Ellipses( 1 ), Shaded Ellipses( 0 ), Ellipse Color( 3 ) )
);
查看每个创建的数据表底部的缩略图,您将看到每个表只有一个平台链接到每个表。 从而显示正确的平台引用了正确的表。
Re:运行程序后面临相同输出的问题吉姆,你好
我明白你写的是什么。
但是,您能给我一些关于如何正确指向不同数据表的示例吗?
谢谢。
Re:运行程序后面临相同输出的问题我的观点并不是问你是否有两个不同的数据表,我认为。 我的观点是你确保你的代码正确指向不同的数据表。 您是否正在使用确保您通过名称或唯一的引用指针专门指向数据表?因此我的示例代码引用了“dt”和“dt2”。
Re:运行程序后面临相同输出的问题嗨,吉姆
是的,完全是2个不同的原始数据集。
我的条件是这样的,当您第一次选择第一个数据集时,softbin list(softbin selection)将与制表表的soft_bin_name相同。
但是当第二次选择另一个数据集时,softbin list(softbin selection)与制表表的soft_bin_name不同。
那么,我可以知道实际上是什么问题吗?任何解决方案都能解决
谢谢。
Re:运行程序后面临相同输出的问题您是否在运行它们时明确指向2个不同的数据表。 如:
dt=Open(<FIRST data="https://community.jmp.com/" table="">);
dt2=Open(<SECOND data="https://community.jmp.com/" table="">);
dt << Bivariate(........);
dt2 << Bivariate(.......);</SECOND></FIRST>