Cómo ejecutar un script, escrito para una tabla "A", en una nueva tabla "B"Gracias por los buenos consejos en esta comunidad.
Tengo un script para una tabla (A).
He creado una nueva tabla (B), que es un subgrupo de la tabla A.
Ahora, trato de ejecutar el análisis realizado en la tabla A, en la tabla B.
¿Hay algún consejo que me permita ejecutar rápidamente este análisis? ¿Utilizando el script escrito para A?
Gracias de nuevo,
Re: Cómo ejecutar un script, escrito para una tabla "A", en una nueva tabla "B"Parece que todo lo que necesita hacer es convertir la tabla de subconjuntos B en la tabla actual, haciendo clic en la ventana y luego ejecutando su script. Retire el OPEN sin embargo. Copié / pegué su código en una ventana JSL y luego hice clic derecho y seleccioné Reformat Script. Si publica un código, es una buena idea reformatearlo y también usar el botón .
New Window( "Feuil2$- Fit Y by X by Remission PD INF 5mg 1 an et CK <500 depuis un an",
H List Box(
Contingency(
Y( :Sexe ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Contingency(
Y( :Db ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Contingency(
Y( :MAS ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Contingency(
Y( :MCAS ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Contingency(
Y( :MVAS ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Oneway(
Y( :Age at diag ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Box Plots( 0 ),
Mean Diamonds( 0 )
),
Oneway(
Y( :Name( "Delais subj-diag" ) ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Box Plots( 0 ),
Mean Diamonds( 0 )
),
Oneway(
Y( :Name( "Delai subl-CK" ) ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Box Plots( 0 ),
Mean Diamonds( 0 )
),
Contingency(
Y( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
)
)
);Re: Cómo ejecutar un script, escrito para una tabla "A", en una nueva tabla "B"Querido Jim,
¡Muchas gracias!
Sí, aquí hay algunos detalles.
En la Tabla A, hice clic en "análisis" y luego en "Ajustar Y por X".
He guardado el análisis usando "Guardar script de sesión".
El guion es
Open(
"C:\Users\Utilisateur\Downloads\HMGCR CHUM\Analyse 16 juillet\Feuil2$.JMP",
window bounds( 35, 33, 1364, 639 )
);
New Window( "Feuil2$- Fit Y by X by Remission PD INF 5mg 1 an et CK <500 depuis un an",
H List Box(
Contingency(
Y( :Sexe ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Contingency(
Y( :Db ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Contingency(
Y( :MAS ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Contingency(
Y( :MCAS ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Contingency(
Y( :MVAS ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
),
Oneway(
Y( :Age at diag ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Box Plots( 0 ),
Mean Diamonds( 0 )
),
Oneway(
Y( :Name( "Delais subj-diag" ) ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Box Plots( 0 ),
Mean Diamonds( 0 )
),
Oneway(
Y( :Name( "Delai subl-CK" ) ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Box Plots( 0 ),
Mean Diamonds( 0 )
),
Contingency(
Y( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
X( :Name( "Remission PD INF 5mg 1 an et CK <500 depuis un an" ) ),
Contingency Table(
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 )
)
)
)
);
Luego, me gustaría el mismo análisis, en un subconjunto del rox de la tabla A.
Estoy buscando una solución más rápida y segura que hacer clic en "análisis" y luego "Ajustar Y por X". luego todos los datos de Y (que son pocos en el ejemplo publicado pero en realidad numerosos en el análisis que me gustaría realizar).
Muchisímas gracias de nuevo,
Con mis mejores deseos,
Alain
Re: Cómo ejecutar un script, escrito para una tabla "A", en una nueva tabla "B"¿De qué se trata el script que lo hace funcionar para la Tabla A, pero no para la Tabla B? ¿Es un problema que las columnas no tengan el mismo nombre? ¿O está el script incrustado dentro de la Tabla A? Algunos detalles adicionales serían útiles para averiguar cómo hacer que el script funcione en la Tabla B.