從合適的模型製作組合表大家好,
我試圖從擬合模型輸出Rsquare值,代碼如下,
(我將Algae Mitscherlich.jmp用於練習,但我相信Rsquare並不是真的意味著什麼。對不起)
最終,無論我輸入[outline box(4)] [2]中的數字,代碼都不會輸出組合表。
有人能指出我這裡有什麼問題嗎?
非常感謝您的回复。
dt_comb=<FONT color="#0000FF">Open</FONT>( "<FONT color="#800080">$SAMPLE_DATA/Nonlinear Examples/Algae Mitscherlich.jmp</FONT>" );
dt_comb<<<FONT color="#333399"><STRONG>Fit Model</STRONG></FONT>(
Y( :Algae density ),
Effects( :Mitscherlich, :equal alphas, :equal betas ),
Personality( "<FONT color="#800080">Standard Least Squares</FONT>" ),
Emphasis( "<FONT color="#800080">Effect Screening</FONT>" ),
Run()
);
dt_model = dt_comb << <FONT color="#333399"><STRONG>report</STRONG></FONT>;
dt_modelR = dt_model[<FONT color="#0000FF">outline box</FONT>(4)][2] << <STRONG><FONT color="#333399">make combined data table</FONT></STRONG>;
回复:從合適的模型製作組合表謝謝, markbailey !
回复:從合適的模型製作組合表我現在看到了。您正在使用錯誤的變量。您的腳本將對Fit Least Squares平台的分析圖層的引用存儲在變量中 dt_model 。然後,您將消息發送到此對像以獲取對報表圖層的引用,但您未將結果存儲在另一個變量中。你當然沒有存儲它 dt_model 。因此,下標無法產生可理解該消息的可編寫腳本的對象。
回复:從合適的模型製作組合表對不起,我很抱歉。也許你的腳本比我意識到的更多,我發送正確消息的例子還不夠。以下是一個有效的完整腳本示例。它應該給你一個更好的主意。
bc = Open( "$SAMPLE_DATA/Big Class.jmp" );
fm = bc << Fit Model(
Y( :weight ),
Effects( :age, :sex, :height ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run(
:weight << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
Parameter Estimates( 1 ), Plot Actual by Predicted( 1 ),
Plot Regression( 0 ), Plot Residual by Predicted( 1 ),
Plot Effect Leverage( 0 )}
)
);
fmr = fm << Report;
fmr["Summary of Fit"][TableBox(1)] << Make Combined Data Table;回复:從合適的模型製作組合表你好 markbailey
謝謝你的回复,但數據表仍然沒有出來。
我使用調試工具,下面顯示的消息,
在訪問或評估'發送'時發送預期的腳本對象,dt_model [“適合摘要”] [表格框(1)] << / * ### * /製作組合數據表/ * ### * /
你知道我應該修改代碼嗎?
回复:從合適的模型製作組合表我建議您將下標方法更改為此表單:
dt_model["Summary of Fit"][TableBox(1)] << Make Combined Data Table;