您可以嘗試包括直方圖邊框並突出顯示Y分佈的部分 - 應突出顯示X值。 然後,如果要檢查這些,可以在數據集的列中命名該選擇(例如,興趣點)以進行進一步分析。
你好 @NSadeghi
請查看此腳本,如果有用,請告知我們。
也許其他人有更優雅的方式來做這件事。我也想知道
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
// this is just in case you want to bring the data back to original row order later.
rowcol = New Column("Row", Numeric, "Continuous", Format("Best", 12), Formula(Row()));
dt << run formulas();
rowcol << suppress eval( true );
// now we start working
dt << Sort( By( :height ), Order( Ascending ), replace table );
// here is where we define the share of included range (0.6)
difcol = New Column("dif", Numeric, "Continuous", Format("Best", 12), Formula(Abs(:height - Lag(:height, -(N Rows() * 0.6)))));
dt << run formulas();
difcol << suppress eval( true );
start = (dt<<GET rows="" where="">= start, row()<=end),1 ,0 ));
// make graphs for observations in the range only.
Bivariate( Y( :height ), X( :weight ), Where( :inrange == 1 ) );
Graph Builder(
Size( 542, 448 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ), Where( :inrange == 1 ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);</GET>您可以查找,選擇和子集包含(中間)60%Y值的行,然後檢查關聯X值的分佈。
Names Default to Here( 1 );
dt 1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = dt 1 << Bivariate( Y( :weight ), X( :height ) );
lo = Col Quantile( :weight, 0.2 );
hi = Col Quantile( :weight, 0.8 );
dt 1 << Select Where( lo <= :weight <= hi );
dt 2 = dt 1 << Subset(
Selected Rows( 1 ),
Selected columns only( 0 )
);
dist = dt 2 << Distribution( Y( :height ) );
嗨,
我的問題可能很簡單,但我似乎無法弄明白。
我有一個Y列,我已將其繪製為與列X相比,它看起來像附加圖像。
我想在X中找到它產生(或包括)60%Y點的範圍。沒有與2列相關的定義公式。
有任何想法嗎?
