Obtener estimaciones de parámetros de la estructura de árbolTengo el siguiente código (en JMP 14.2) que extrae estimaciones de parámetros de la estructura de árbol de una regresión logística.
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>
Esto ha funcionado de manera confiable hasta que un usuario recibió un error.Para sus condiciones, las estimaciones de los parámetros están en el recuadro de columna numérica ( 15 ), no ( 14 ).¿Existe una manera fácil de averiguar el cuadro de columna numérico correcto que se debe usar?El 99,99% del tiempo las estimaciones de los parámetros están en (14).Aquí hay una parte de la estructura del árbol:

AnalíticaScriptingRe: Obtener estimaciones de parámetros de la estructura del árbolEsta debería funciona pero devuelve una lista de cadenas en lugar de los objetos (tuve un ticket de soporte en un momento, necesito verificarlo);
fm << XPath( "//NumberColBoxHeader[text()='Estimate']/following-sibling::NumberColBoxItem")
En su lugar, podría hacer esto:
(fm << XPath( "//NumberColBox[NumberColBoxHeader[text()='Estimate']]"))[1][1::2]
Aquí está el script completo que usé para hacer esos ejemplos:
Ver más...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: Obtener estimaciones de parámetros de la estructura del árbolHaría una referencia relativa después de señalar el cuadro de esquema
parameter_estimates = fmrep["Parameter Estimates"][numbercolbox(1)] << get;
Re: Obtener estimaciones de parámetros de la estructura del árbolGracias Jim, ¡exactamente lo que necesitaba!