運行程序後面臨相同輸出的問題嗨,大家好
我遇到的一個問題是:當我使用不同的原始數據集時會導致什麼情況,但是在運行程序之後,兩個輸出都是相同的。任何解決方案都可以解決這個問
謝謝。
任何答案都很感激。
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>