트리 구조에서 모수 추정값 얻기로지스틱 회귀 트리 구조에서 모수 추정값을 추출하는 다음 코드 (JMP 14.2)가 있습니다.
fm = trend_count_dt << Fit Model(
Y( :Name( "<COLUMN name="">" ), :Total Cases ),
Effects( :Interval ),
Personality( Generalized Linear Model ),
GLM Distribution( Binomial ),
Link Function( Logit ),
Overdispersion Tests and Intervals( 0 ),
Name( "Firth Bias-adjusted Estimates" )(0),
Run, invisible
);
fmrep = fm << report;
parameter_estimates = fmrep[numbercolbox(14)] << get;
prob_chisq = fmrep[numbercolbox(17)] << get;
</COLUMN>
이것은 사용자에게 오류가 발생할 때까지 안정적으로 작동했습니다.조건에 대한 모수 추정치는 Number Col Box ( 15 ), ( 14 ).사용할 올바른 번호 열 상자를 쉽게 알아낼 수있는 방법이 있습니까?모수 추정치가 (14)에있는 시간의 99.99 %.다음은 트리 구조의 일부입니다.

해석학스크립팅Re : 트리 구조에서 매개 변수 추정값 얻기이 할까요 작동하지만 객체 대신 문자열 목록을 반환합니다 (한 번에 지원 티켓이 있었으므로 체크인해야 함).
fm << XPath( "//NumberColBoxHeader[text()='Estimate']/following-sibling::NumberColBoxItem")
대신 다음과 같이 할 수 있습니다.
(fm << XPath( "//NumberColBox[NumberColBoxHeader[text()='Estimate']]"))[1][1::2]
다음은 이러한 예제를 만드는 데 사용한 전체 스크립트입니다.
더보기...Names default to here(1);
dt = Open( "$Sample_data/big class.jmp" );
fm = dt << Fit Model(
Y( :height, :weight ),
Effects( :sex ),
Personality( Generalized Linear Model ),
GLM Distribution( Binomial ),
Link Function( Logit ),
Overdispersion Tests and Intervals( 0 ),
Name( "Firth Bias-adjusted Estimates" )(0),
Run
);
//find nodes of interest here:
new window( "XML Script", << Script, fm << get xml);
//This SHOULD work but returns a string instead of the object (I had a support ticket in for it at one time, need to check into it);
fm << XPath( "//NumberColBoxHeader[text()='Estimate']/following-sibling::NumberColBoxItem")
//Instead you could do this:
(fm << XPath( "//NumberColBox[NumberColBoxHeader[text()='Estimate']]"))[1][1::2]
Re : 트리 구조에서 매개 변수 추정값 얻기개요 상자를 가리킨 후 상대 참조를 수행합니다.
parameter_estimates = fmrep["Parameter Estimates"][numbercolbox(1)] << get;
Re : 트리 구조에서 매개 변수 추정값 얻기고마워 Jim-정확히 내가 필요한 것!