Hola,
Estoy tratando de armar un script que determine si un dato (XYZ%) recopilado para un sujeto específico (unique_subject_id) es significativamente diferente de una población de referencia (como el vehículo en la columna 'test_article_type'). Además, para un tema determinado puede haber varios datos recopilados en múltiples ubicaciones (variables).
Ejecutar la prueba t de una muestra parece bastante simple, pero estoy luchando por encontrar una manera de llevar la información 'unique_subject_id y variables' cuando ejecuto la opción 'test mean' en la plataforma de distribución haciendo uso del 'XYZ%' valor para cada 'variable_id_subjeto_unico' utilizando un bucle for.
No puedo pensar en una forma de transferir la etiqueta 'unique_subject_id_variables' a la plataforma de distribución para permitir que el valor P generado vuelva a la tabla principal sin riesgo de confusión.
Cualquier sugerencia será muy apreciada.
Mejor,
Sébastien
// The distribution for the "XYZ % (Norm to Ctrl Gene/Ctrl Grp)" is assessed for each variables separately for the 'vehicle' samples only ('test_article_type')
//This is used as the starting point to assess whether each "XYZ % (Norm to Ctrl Gene/Ctrl Grp)" values for every unique_subject_id is similar or not to the a reference population (ie 'vehicle') for their respective variables.
// the unique_subject_id_variables is not carried over in the pvalue report table so there is a risk of mix up when merging the Pvalue back to the main table
Names Default To Here( 1 );
Clear Log();
try(data Table( "one sample t-test validation Anonymized")<<CLOSE window=""></CLOSE>por lo tanto, su guión está haciendo lo que usted cree que es, pero siempre es un poco arriesgado esperar que todo permanezca en el mismo orden. o al menos me pone nervioso.
Hice un par de pequeños ajustes para que se convierta en una tabla etiquetada. El formato ancho no es ideal, pero puede apilarse y unirse a sus datos. Dejaré que resuelvas esa parte.
Además, hubo un comentario sobre esta línea.
//By( :variables )// does not appear to be used by the platform
solo una nota ": variables" se refiere a una columna en la tabla de datos, pero la tabla no tiene una columna con ese nombre, por lo que no hace nada.
aquí está el JSL, espero que tenga sentido
// The distribution for the "XYZ % (Norm to Ctrl Gene/Ctrl Grp)" is assessed for each variables separately for the 'vehicle' samples only ('test_article_type')
//This is used as the starting point to assess whether each "XYZ % (Norm to Ctrl Gene/Ctrl Grp)" values for every unique_subject_id is similar or not to the a reference population (ie 'vehicle') for their respective variables.
// the unique_subject_id_variables is not carried over in the pvalue report table so there is a risk of mix up when merging the Pvalue back to the main table
Names Default To Here( 1 );
Clear Log();
try(data Table( "one sample t-test validation Anonymized")<<CLOSE window=""> |t|", "Prob > t", "Prob < t"} )
);
variable = column(dt,3)<<GET values=""></GET></CLOSE>