cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-734580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EG%C3%A9n%C3%A9ration%20d'un%20tableau%20r%C3%A9capitulatif%20avec%20les%20valeurs%20p%20%C3%A0%20partir%20d'un%20test%20t%20it%C3%A9ratif%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-734580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EJe%20recherche%20un%20script%20qui%20g%C3%A9n%C3%A9rera%20automatiquement%20un%20tableau%20r%C3%A9capitulatif%2Fpivot%C3%A9%20des%20moyennes%20et%20des%20valeurs%20p%20pour%20les%20tests%20t%20par%20paires%20par%20rapport%20%C3%A0%20un%20groupe%20de%20r%C3%A9f%C3%A9rence.%20J'utilise%20JMP%2017.%3C%2FP%3E%3CP%3EDans%20le%20tableau%20de%20donn%C3%A9es%20ci-dessous%2C%20il%20y%20a%20des%20colonnes%20pour%20SubjectId%2C%20IMC%20mesur%C3%A9%2C%20VO2max%20mesur%C3%A9%2C%20ann%C3%A9e%20et%20R%C3%A9f%C3%A9rence%20pour%20indiquer%20si%20la%20ligne%20a%20ou%20non%20un%20SubjectID%20qui%20est%20une%20r%C3%A9f%C3%A9rence.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_1-1710351011937.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F62175i1F0BB9B8B80DF10B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LinkageBee996_1-1710351011937.png%22%20alt%3D%22LinkageBee996_1-1710351011937.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EJ'ai%20g%C3%A9n%C3%A9r%C3%A9%20manuellement%20des%20tableaux%20r%C3%A9capitulatifs%20(comme%20celui%20ci-dessous)%20avec%20les%20moyennes%2C%20puis%20j'ai%20rempli%20manuellement%20les%20valeurs%20p%20pour%20les%20tests%20t%20unilat%C3%A9raux.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LinkageBee996_2-1710351033325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F62176i3926CD65F7A1503D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LinkageBee996_2-1710351033325.png%22%20alt%3D%22LinkageBee996_2-1710351033325.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EJe%20m'int%C3%A9resse%20sp%C3%A9cifiquement%20aux%20r%C3%A9sultats%20unilat%C3%A9raux%20de%20valeur%20p%20d'un%20test%20t%20entre%20chaque%20SubjectID%20par%20rapport%20%C3%A0%20la%20r%C3%A9f%C3%A9rence%20pour%20chaque%20ann%C3%A9e%20afin%20de%20d%C3%A9terminer%20si%20le%20SubjectID%20non-r%C3%A9f%C3%A9rence%20a%20ou%20non%20un%20IMC%20ou%20un%20VO2max%20%3CSPAN%3Eplus%20%C3%A9lev%C3%A9%3C%2FSPAN%3E%20que%20le%20SubjectID%20de%20r%C3%A9f%C3%A9rence.%20Jusqu'%C3%A0%20pr%C3%A9sent%2C%20j'ai%20effectu%C3%A9%20manuellement%20un%20test%20t%20group%C3%A9%20et%20rapport%C3%A9%20la%20valeur%20p%20et%20la%20moyenne%20dans%20un%20tableau%20r%C3%A9capitulatif%20que%20j'ai%20cr%C3%A9%C3%A9.%20Existe-t-il%20un%20moyen%20de%20parcourir%20une%20liste%20de%20SubjectID%20uniques%20et%20de%20g%C3%A9n%C3%A9rer%20un%20tableau%20r%C3%A9capitulatif%20avec%20ces%20statistiques%20effectu%C3%A9es%20de%20la%20mani%C3%A8re%20d%C3%A9crite%20%C3%A0%20l'aide%20de%20JSL%26nbsp%3B%3F%20De%20plus%2C%20une%20mani%C3%A8re%20g%C3%A9n%C3%A9ralis%C3%A9e%20d'ajouter%20des%20statistiques%20r%C3%A9capitulatives%20(par%20exemple%20N%20pour%20chaque%20SubjectID%20pour%20chaque%20analyse)%20serait%20utile.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-734580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomatisation%20et%20scripts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAnalyse%20et%20mod%C3%A9lisation%20des%20donn%C3%A9es%20de%20base%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-734646%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20G%C3%A9n%C3%A9ration%20d'un%20tableau%20r%C3%A9capitulatif%20avec%20les%20valeurs%20p%20%C3%A0%20partir%20d'un%20test%20t%20it%C3%A9ratif%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-734646%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EJe%20n'arrive%20pas%20%C3%A0%20comprendre%20ce%20que%20vous%20faites%20avec%20les%20valeurs%20de%20votre%20table%20principale%2C%20avec%20le%20nouvel%20affichage%20dans%20votre%20table%20de%20rapport.%20Veuillez%20d%C3%A9tailler%20les%20%C3%A9tapes%20que%20vous%20suivez%20pour%20transformer%20les%20donn%C3%A9es.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-735059%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20G%C3%A9n%C3%A9ration%20d'un%20tableau%20r%C3%A9capitulatif%20avec%20les%20valeurs%20p%20%C3%A0%20partir%20d'un%20test%20t%20it%C3%A9ratif%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-735059%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESalut%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55713%22%20target%3D%22_blank%22%3E%40LinkageBee996%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EJe%20suis%20d'accord%20avec%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2687%22%20target%3D%22_blank%22%3E%40txnelson%3C%2FA%3E%20%2C%20il%20est%20difficile%20de%20comprendre%20comment%20vous%20passez%20de%20votre%20table%20de%20donn%C3%A9es%20principale%20%C3%A0%20celle%20que%20vous%20g%C3%A9n%C3%A9rez%20manuellement.%20Il%20pourrait%20%C3%AAtre%20plus%20efficace%20pour%20vous%20de%20r%C3%A9organiser%20votre%20tableau%20de%20donn%C3%A9es%20et%20de%20l'organiser%20diff%C3%A9remment.%20Cela%20peut%20n%C3%A9cessiter%20de%20les%20diviser%20ou%20de%20joindre%20les%20donn%C3%A9es%20diff%C3%A9remment%20de%20la%20mani%C3%A8re%20dont%20elles%20sont%20actuellement%20structur%C3%A9es.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3ELa%20raison%20pour%20laquelle%20je%20mentionne%20cela%20est%20que%20parfois%20des%20analyses%20peuvent%20%C3%AAtre%20effectu%C3%A9es%20%C3%A0%20l'aide%20d'une%20variable%20de%20groupe%20BY%2C%20puis%20les%20r%C3%A9sultats%20de%20l'analyse%20peuvent%20%C3%AAtre%20facilement%20obtenus%20dans%20un%20tableau%20de%20donn%C3%A9es%20plus%20grand%20en%20cliquant%20avec%20le%20bouton%20droit%20sur%20un%20tableau%20de%20rapport%20et%20en%20s%C3%A9lectionnant%20Cr%C3%A9er%20un%20tableau%20de%20donn%C3%A9es%20combin%C3%A9.%20Vous%20pouvez%20voir%20si%20c'est%20peut-%C3%AAtre%20ce%20qui%20fonctionnerait%20pour%20vous%20en%20utilisant%20les%20exemples%20de%20donn%C3%A9es%20Big%20Class.jmp%20et%20en%20effectuant%20une%20ANOVA%20Fit%20Y%20par%20X%20avec%20%3Asex%20comme%20axe%20x%20et%20%3Aheight%20comme%20Y%20(pour%20mieux%20voir%20comment%20le%20faire%20la%20table%20de%20donn%C3%A9es%20combin%C3%A9e%20fonctionne%2C%20utilisez%20%3Aage%20comme%20variable%20BY).%20Effectuez%20votre%20test%20t%2C%20puis%20cliquez%20avec%20le%20bouton%20droit%20sur%20le%20tableau%20statistique%20qui%20vous%20int%C3%A9resse%20et%20s%C3%A9lectionnez%20cr%C3%A9er%20un%20tableau%20de%20donn%C3%A9es%20combin%C3%A9es.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3ESi%20vous%20faites%20cela%20pour%20le%20test%20t%20ainsi%20que%20pour%20les%20moyennes%20pour%20Oneway%20Anova%2C%20vous%20pouvez%20ensuite%20joindre%20ces%20tableaux%20de%20donn%C3%A9es%20afin%20d'avoir%20la%20valeur%20moyenne%20de%20chaque%20groupe%20ainsi%20que%20la%20valeur%20p%20pour%20le%20test%20t.%20Cela%20devrait%20ressembler%20%C3%A0%20quelque%20chose%20comme%20ceci%2C%20ce%20qui%20pourrait%20correspondre%20%C3%A0%20ce%20que%20vous%20recherchez.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22SDF1_0-1710429804014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SDF1_0-1710429804014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SDF1_0-1710429804014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SDF1_0-1710429804014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SDF1_0-1710429804014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SDF1_0-1710429804014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SDF1_0-1710429804014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F62198i8424328D20364439%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22SDF1_0-1710429804014.png%22%20alt%3D%22SDF1_0-1710429804014.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EBien%20s%C3%BBr%2C%20vous%20pouvez%20toujours%20enregistrer%20les%20scripts%20g%C3%A9n%C3%A9r%C3%A9s%20dans%20les%20tableaux%20de%20donn%C3%A9es%20pour%20les%20regrouper%20dans%20un%20seul%20script%20de%20travail%20-%20ou%20utiliser%20l'enregistreur%20Workflow%20Builder%20et%20il%20pourra%20%C3%A9crire%20le%20script%20pour%20vous%2C%20voir%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F17.2%2Findex.shtml%23page%2Fjmp%2Fworkflow-builder.shtml%23%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eici%3C%2FA%3E%20.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EJ'esp%C3%A8re%20que%20cela%20t'aides%2C%3C%2FP%3E%0A%3CP%3EDS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-735093%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20G%C3%A9n%C3%A9ration%20d'un%20tableau%20r%C3%A9capitulatif%20avec%20les%20valeurs%20p%20%C3%A0%20partir%20d'un%20test%20t%20it%C3%A9ratif%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-735093%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESalut%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2687%22%20target%3D%22_blank%22%3E%40txnelson%3C%2FA%3E%20et%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F12549%22%20target%3D%22_blank%22%3E%40SDF1%3C%2FA%3E%20%2C%20j'esp%C3%A8re%20pouvoir%20clarifier%20la%20demande%20et%20peut-%C3%AAtre%20concentrer%20un%20peu%20la%20port%C3%A9e.%20Je%20travaille%20avec%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55713%22%20target%3D%22_blank%22%3E%40LinkageBee996%2C%3C%2FA%3E%20il%20m'a%20donc%20demand%C3%A9%20de%20l'aider%20%C3%A0%20clarifier.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ELe%20flux%20de%20travail%20actuel%20est%20le%20suivant%26nbsp%3B%3A%3C%2FP%3E%3CP%3E1)%20Commencez%20par%20la%20table%20de%20donn%C3%A9es%20partag%C3%A9e%20par%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55713%22%20target%3D%22_blank%22%3E%40LinkageBee996%3C%2FA%3E%20.%20Pour%20simplifier%20les%20choses%2C%20je%20vais%20ignorer%20la%20colonne%20ann%C3%A9e%20et%20me%20concentrer%20uniquement%20sur%20l'IMC.%3C%2FP%3E%3CP%3E2)%20Effectuez%20un%20simple%20test%20t%20%C3%A0%20deux%20%C3%A9chantillons%20comparant%20chacun%20des%20identifiants%20de%20sujet%20%C3%A9tiquet%C3%A9s%20%C2%AB%20Non%20%C2%BB%20pour%20r%C3%A9f%C3%A9rence%20%C3%A0%20l'identifiant%20de%20sujet%20(A1454)%20%C3%A9tiquet%C3%A9%20%C2%AB%20Oui%20%C2%BB%20pour%20r%C3%A9f%C3%A9rence%20pour%20un%20total%20de%205%20comparaisons%20(il%20y%20a%20une%20raison%20pour%20laquelle%20nous%20faisons%20cela%20plut%C3%B4t%20que%20de%20faire%20quelque%20chose%20comme%20un%20test%20de%20Dunnetts).%20Nous%20le%20faisons%20actuellement%20un%20par%20un%20en%20utilisant%20le%20filtre%20de%20donn%C3%A9es%20local%20dans%20la%20plateforme%20%C3%A0%20sens%20unique%20sous%20%C2%AB%20Ajuster%20Y%20par%20X%20%C2%BB.%3C%2FP%3E%3CP%3E3)%20Actuellement%2C%20les%20r%C3%A9sultats%20du%20test%20t%20(valeurs%20p%20et%20autres)%20sont%20ensuite%20transcrits%20manuellement%20dans%20un%20fichier%20vierge%20(tableau%20CSV%20ou%20JMP).%20%C3%89tant%20donn%C3%A9%20que%20nous%20effectuons%20un%20test%20%C3%A0%20la%20fois%2C%20l'utilisation%20de%20%C2%AB%20Cr%C3%A9er%20une%20table%20de%20donn%C3%A9es%20%C2%BB%20n'est%20pas%20pratique%20car%20vous%20vous%20retrouvez%20avec%20autant%20de%20tables%20de%20donn%C3%A9es%20que%20de%20comparaisons%2C%20il%20vous%20faudra%20alors%20les%20combiner%20en%20une%20seule%20table%20de%20donn%C3%A9es.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ENous%20aimerions%20automatiser%20cette%20partie%20de%20l'analyse%20qui%20est%20%C3%A0%20l'%C3%A9preuve%20du%20temps%20pour%20tout%20nouvel%20identifiant%20de%20sujet%20que%20nous%20pourrions%20tester%2C%20de%20sorte%20que%20le%20script%20devrait%20(dans%20l'ordre%20le%20plus%20logique)%20effectuer%20ce%20qui%20suit.%20C'est%20ce%20qui%20est%20logique%20dans%20ma%20t%C3%AAte%20en%20faisant%20des%20analyses%20similaires%20en%20python%20et%20d'autres%20logiciels%26nbsp%3B%3A%3C%2FP%3E%3CP%3E1.%20Cr%C3%A9ez%20une%20liste%20des%20identifiants%20%C2%AB%26nbsp%3Bnon-r%C3%A9f%C3%A9rence%26nbsp%3B%C2%BB%3C%2FP%3E%3CP%3E2.Pour%20chaque%20ID%20non-r%C3%A9f%C3%A9rence%2C%20effectuez%20une%20analyse%20unidirectionnelle%20et%20un%20test%20T%20sur%20deux%20%C3%A9chantillons%20en%20le%20comparant%20%C3%A0%20l'ID%20du%20sujet%20qui%20est%20%C3%A9tiquet%C3%A9%20comme%20%C2%AB%26nbsp%3BOui%26nbsp%3B%C2%BB%20pour%20r%C3%A9f%C3%A9rence%20(et%20supposons%20qu'il%20y%20aura%20toujours%20exactement%20un%20des%20ces)%3C%2FP%3E%3CP%3E3.%20Enregistrez%20les%20r%C3%A9sultats%20du%20test%20t%20dans%20un%20tableau%20de%20donn%C3%A9es.%20Une%20remarque%20ici%26nbsp%3B%3A%20les%20formats%20par%20d%C3%A9faut%20%22cr%C3%A9er%20une%20table%20de%20donn%C3%A9es%22%20et%20%22cr%C3%A9er%20une%20table%20de%20donn%C3%A9es%20combin%C3%A9e%22%20n'enregistrent%20pas%20certaines%20des%20m%C3%A9tadonn%C3%A9es%20de%20la%20comparaison%20-%20par%20exemple%2C%20ils%20indiqueront%20l'en-t%C3%AAte%20de%20votre%20colonne%20(X%20est%20l'ID%20du%20sujet%2C%20Y%20est%20IMC)%2C%20mais%20il%20ne%20vous%20dira%20pas%20%C3%A0%20quoi%20ressemblent%20les%20deux%20valeurs%20de%20X%2C%20affich%C3%A9es%20en%20haut%20de%20l'interface%20utilisateur%20des%20r%C3%A9sultats%20du%20test%20t%20dans%20l'analyse%20('A1454-B8565').%20Nous%20voudrions%20capturer%20ces%20informations%26nbsp%3B%3A%20vous%20comparez%20deux%20choses%2C%20quelles%20sont%20les%20deux%20choses%20que%20vous%20comparez%26nbsp%3B%3F%3C%2FP%3E%3CP%3E4.%20Combinez%20tous%20les%20r%C3%A9sultats%20du%20test%20t%20de%20chaque%20comparaison%20de%20l'ensemble%20de%20donn%C3%A9es%20dans%20un%20seul%20tableau%20de%20donn%C3%A9es.%20%C3%80%20partir%20de%20l%C3%A0%2C%20il%20ne%20s'agira%20que%20d'un%20probl%C3%A8me%20de%20manipulation%20de%20donn%C3%A9es%20que%20nous%20pourrons%20probablement%20r%C3%A9soudre%20pour%20les%20mettre%20dans%20le%20format%20le%20plus%20utile.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EJ'esp%C3%A8re%20que%20cela%20apportera%20plus%20de%20clart%C3%A9%2C%20faites-nous%20savoir%20s'il%20y%20a%20encore%20une%20ambigu%C3%AFt%C3%A9%20%C3%A0%20ce%20sujet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-735689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20G%C3%A9n%C3%A9ration%20d'un%20tableau%20r%C3%A9capitulatif%20avec%20les%20valeurs%20p%20%C3%A0%20partir%20d'un%20test%20t%20it%C3%A9ratif%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-735689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESalut%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55778%22%20target%3D%22_blank%22%3E%40Moser_stefan%3C%2FA%3E%20et%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55713%22%20target%3D%22_blank%22%3E%40LinkageBee996%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EJe%20comprends%20mieux%20ce%20que%20tu%20essaies%20de%20faire.%20Voici%20quelques%20r%C3%A9flexions%20%3A%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E1.%20Sur%20la%20base%20de%20votre%20description%2C%20je%20pense%20toujours%20que%20la%20restructuration%20de%20votre%20table%20de%20donn%C3%A9es%20pourrait%20%C3%AAtre%20b%C3%A9n%C3%A9fique%20afin%20que%20vous%20puissiez%20profiter%20de%20la%20variable%20BY%20dans%20l'analyse%20ANOVA%2C%20puis%20du%20Make%20Combined%20Data%20Table.%20Il%20faudra%20peut-%C3%AAtre%20r%C3%A9fl%C3%A9chir%20%C3%A0%20la%20fa%C3%A7on%20de%20reformater%20votre%20tableau%20de%20donn%C3%A9es%2C%20mais%20je%20pense%20que%20cela%20pourrait%20en%20valoir%20la%20peine.%20M%C3%AAme%20si%20vous%20vous%20retrouvez%20avec%20de%20nombreuses%20tables%20de%20donn%C3%A9es%2C%20vous%20pouvez%20toujours%20effectuer%20une%20jointure.%20et%20combinez-les%20en%20un%20seul%20tableau%20de%20donn%C3%A9es%20%C3%A0%20la%20fin.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E2.%20Je%20pense%20que%20c'est%20une%20excellente%20id%C3%A9e%20d'automatiser%20un%20tel%20processus%2C%20surtout%20si%20les%20analyses%20doivent%20%C3%AAtre%20r%C3%A9p%C3%A9t%C3%A9es%20avec%20de%20futurs%20ensembles%20de%20donn%C3%A9es.%20%C3%80%20cet%20%C3%A9gard%2C%20je%20vous%20recommande%20fortement%20de%20prendre%20le%20temps%20d%E2%80%99apprendre%20par%20vous-m%C3%AAme%20le%20codage%20JSL.%20Chacun%20a%20ses%20propres%20besoins%20sp%C3%A9cifiques%20lorsqu'il%20s'agit%20de%20ce%20genre%20de%20choses%2C%20et%20si%20vous%20pouvez%20apprendre%20le%20JSL%20au%20profit%20de%20votre%20organisation%2C%20cela%20vous%20fera%20avancer%20beaucoup%20plus%20rapidement%20que%20vous%20ne%20pouvez%20l'imaginer.%20Les%20solutions%20de%20script%20aux%20probl%C3%A8mes%20JMP%20facilitent%20la%20vie%20et%20acc%C3%A9l%C3%A8rent%20consid%C3%A9rablement%20l'obtention%20des%20r%C3%A9sultats.%20Il%20existe%20une%20tonne%20de%20bonnes%20informations%2C%20notamment%20sur%20le%20forum%20de%20discussions%20en%20ligne%2C%20mais%20aussi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FLaura-Higgins-Blog%2FEssential-Resources-for-JSL-Scripting%2Fba-p%2F256456%22%20target%3D%22_self%22%3Eici%3C%2FA%3E%20.%20Vous%20pouvez%20t%C3%A9l%C3%A9charger%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fen_us%2Fsupport%2Fjmp-documentation.html%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eici%3C%2FA%3E%20de%20nombreuses%20bonnes%20documentations%20JMP%2C%20y%20compris%20le%20dernier%20PDF%20du%20guide%20de%20script.%20De%20plus%2C%20il%20existe%20%C3%A9galement%20l'index%20des%20scripts%20sous%20Aide%20%26gt%3B%20Index%20des%20scripts.%20Comme%20mentionn%C3%A9%20pr%C3%A9c%C3%A9demment%2C%20si%20vous%20d%C3%A9butez%20dans%20le%20codage%20et%20la%20cr%C3%A9ation%20de%20scripts%2C%20envisagez%20d'utiliser%20le%20g%C3%A9n%C3%A9rateur%20de%20flux%20de%20travail%2C%20qui%20g%C3%A9n%C3%A9rera%20le%20script%20dont%20vous%20avez%20besoin.%20Cela%20%C3%A9tant%20dit%2C%20ma%20recommandation%20est%20de%20l'apprendre%20vous-m%C3%AAme%20afin%20d'avoir%20plus%20de%20contr%C3%B4le%2Fflexibilit%C3%A9%20lorsqu'il%20s'agit%20de%20coder%20votre%20travail.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E3.%20Sans%20disposer%20de%20votre%20table%20de%20donn%C3%A9es%20r%C3%A9elle%20avec%20laquelle%20travailler%20(m%C3%AAme%20si%20elle%20est%20anonymis%C3%A9e%20pour%20prot%C3%A9ger%20toute%20information%20sensible)%2C%20il%20est%20tr%C3%A8s%20difficile%20de%20g%C3%A9n%C3%A9rer%20un%20script%20pour%20quelqu'un%20d'autre%20qui%20fonctionnera%20de%20mani%C3%A8re%20g%C3%A9n%C3%A9rique%20-%20c'est-%C3%A0-dire%20dans%20%22toutes%22%20les%20circonstances%20(bien%20s%C3%BBr%2C%20rien).%20fonctionne%20vraiment%20dans%20toutes%20les%20circonstances%20possibles%2C%20mais%20le%20point%20demeure%20%3A%20le%20rendre%20g%C3%A9n%C3%A9ralisable).%20L'%C3%A9criture%20de%20code%20pour%20d'autres%20d%C3%A9pend%20fortement%20de%20la%20table%20de%20donn%C3%A9es%20avec%20laquelle%20vous%20travaillez%20et%20de%20la%20structure%20des%20donn%C3%A9es%20dans%20la%20table%2C%20car%20cela%20change%20la%20fa%C3%A7on%20dont%20vous%20pouvez%20aborder%20l'analyse%20et%20le%20regroupement%20des%20r%C3%A9sultats%2C%20etc.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EJe%20sais%20que%20ce%20n'est%20pas%20vraiment%20la%20r%C3%A9ponse%20que%20vous%20recherchez%2C%20mais%20je%20pense%20qu'avec%20un%20peu%20de%20temps%20investi%20dans%20la%20restructuration%20de%20vos%20donn%C3%A9es%20et%2Fou%20dans%20l'apprentissage%20du%20JSL%2C%20vous%20constaterez%20que%20le%20gain%20d%C3%A9passe%20de%20loin%20les%20efforts%20d%C3%A9ploy%C3%A9s.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EBonne%20chance!%2C%3C%2FP%3E%0A%3CP%3EDS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-736178%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20G%C3%A9n%C3%A9ration%20d'un%20tableau%20r%C3%A9capitulatif%20avec%20les%20valeurs%20p%20%C3%A0%20partir%20d'un%20test%20t%20it%C3%A9ratif%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-736178%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMerci%20pour%20la%20r%C3%A9ponse%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F12549%22%20target%3D%22_blank%22%3E%40SDF1%3C%2FA%3E%20.%20Le%20parcours%20JSL%20a%20du%20sens%2C%20j'en%20ai%20une%20certaine%20exp%C3%A9rience%20mais%20certainement%20pas%20d'expert%2C%20donc%20une%20bonne%20opportunit%C3%A9%20de%20d%C3%A9velopper%20nos%20comp%C3%A9tences%20ici.%20Quoi%20qu%E2%80%99il%20en%20soit%2C%20il%20est%20utile%20d%E2%80%99avoir%20votre%20point%20de%20vue%20sur%20les%20voies%20potentielles%20pour%20r%C3%A9soudre%20ce%20probl%C3%A8me%20pour%20voir%20quelles%20sont%20certaines%20des%20options.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EUne%20chose%20que%20j'ai%20du%20mal%20%C3%A0%20voir%20comment%20la%20fonction%20%C2%AB%26nbsp%3Bpar%26nbsp%3B%C2%BB%20pourrait%20%C3%AAtre%20utilis%C3%A9e%20-%20principalement%20parce%20que%20nous%20avons%20un%20groupe%20de%20donn%C3%A9es%20(l'ensemble%20de%20donn%C3%A9es%20de%20r%C3%A9f%C3%A9rence)%20que%20nous%20voulons%20r%C3%A9utiliser%20dans%20chaque%20comparaison%20et%20un%20groupe%20(non-r%C3%A9f%C3%A9rence%20)%20qui%20devrait%20%C3%AAtre%20divis%C3%A9%20%C2%AB%20par%20%C2%BB.%20La%20seule%20fa%C3%A7on%20dont%20je%20vois%20cela%20fonctionner%20est%20de%20r%C3%A9pliquer%20l'ensemble%20de%20donn%C3%A9es%20de%20r%C3%A9f%C3%A9rence%20pour%20chaque%20comparaison%2C%20puis%20de%20lui%20attribuer%20une%20variable%20unique%20(par%20exemple%2C%20une%20colonne%20%C2%AB%20comparaison%20%C2%BB).%20Peut-%C3%AAtre%20que%20cela%20fonctionnerait...%20nous%20devrons%20simplement%20r%C3%A9fl%C3%A9chir%20%C3%A0%20la%20question%20de%20savoir%20si%20la%20r%C3%A9plication%20des%20donn%C3%A9es%20dans%20le%20tableau%20de%20donn%C3%A9es%20brutes%20cr%C3%A9e%20d'autres%20probl%C3%A8mes%20ou%20risques.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EEh%20bien%2C%20vous%20nous%20avez%20certainement%20donn%C3%A9%20mati%C3%A8re%20%C3%A0%20r%C3%A9flexion%20et%20j'appr%C3%A9cie%20le%20temps%20que%20vous%20avez%20pris%20pour%20r%C3%A9pondre.%20Nous%20ne%20manquerons%20pas%20de%20donner%20suite%20%C3%A0%20la%20solution%20que%20nous%20proposerons.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-736415%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20G%C3%A9n%C3%A9ration%20d'un%20tableau%20r%C3%A9capitulatif%20avec%20les%20valeurs%20p%20%C3%A0%20partir%20d'un%20test%20t%20it%C3%A9ratif%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-736415%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESalut%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55778%22%20target%3D%22_blank%22%3E%40Moser_stefan%3C%2FA%3E%20et%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55713%22%20target%3D%22_blank%22%3E%40LinkageBee996%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EHeureux%20de%20vous%20aider.%20Et%20je%20pense%20que%20je%20comprends%20un%20peu%20mieux%20la%20fa%C3%A7on%20dont%20vos%20donn%C3%A9es%20sont%20structur%C3%A9es%20pourquoi%20la%20variable%20BY%20serait%20un%20peu%20difficile.%20Il%20faudrait%20probablement%20une%20restructuration%20consid%C3%A9rable%20de%20vos%20donn%C3%A9es%20pour%20que%20cela%20fonctionne%20comme%20je%20le%20pensais%2Fle%20souhaitais.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EAu%20lieu%20de%20cela%2C%20il%20serait%20peut-%C3%AAtre%20pr%C3%A9f%C3%A9rable%20de%20prendre%20des%20sous-ensembles%20de%20vos%20donn%C3%A9es%20en%20fonction%20de%20la%20colonne%20ID%20du%20sujet%20et%20peut-%C3%AAtre%20%C3%A9galement%20d'utiliser%20la%20colonne%20R%C3%A9f%C3%A9rence.%20Ensuite%2C%20effectuez%20votre%20analyse%20de%20test%20t%20sur%20chacun%20des%20identifiants%20de%20r%C3%A9f%C3%A9rence%20et%20de%20sujet%20des%20tableaux%20de%20donn%C3%A9es%20du%20sous-ensemble.%20Ensuite%2C%20utilisez%20Make%20Into%20Data%20Table%2C%20puis%20joignez%20les%20tables%20de%20donn%C3%A9es%20r%C3%A9sultantes%20en%20fonction%20d'une%20colonne%2C%20par%20exemple%20la%20colonne%201%20dans%20le%20r%C3%A9sultat%20Make%20Into%20Data%20Table.%20Cela%20pourrait%20%C3%AAtre%20le%20moyen%20le%20plus%20rapide%20de%20passer%20de%20votre%20format%20de%20donn%C3%A9es%20actuel%20%C3%A0%20une%20solution%20sans%20avoir%20%C3%A0%20passer%20trop%20de%20temps%20%C3%A0%20restructurer%20vos%20donn%C3%A9es.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%C3%80%20cet%20%C3%A9gard%2C%20j'ai%20constitu%C3%A9%20un%20tableau%20de%20donn%C3%A9es%20fictif%20(ci-joint)%20avec%20une%20colonne%20Source%20(comme%20votre%20ID%20de%20sujet)%20et%20les%20diff%C3%A9rents%20scripts.%20Vous%20pouvez%20examiner%20les%20scripts%20en%20cliquant%20avec%20le%20bouton%20droit%20et%20en%20s%C3%A9lectionnant%20Modifier%2C%20mais%20vous%20pouvez%20%C3%A9galement%20les%20ex%C3%A9cuter%26nbsp%3B%3A%20ex%C3%A9cutez-les%20regroup%C3%A9s%20par%20source%20A%20ou%20B%2C%20puis%20ex%C3%A9cutez%20le%20dernier%20script%20qui%20joint%20les%20deux%20tables%20de%20donn%C3%A9es%20dans%20une%20table%20de%20donn%C3%A9es%20finale.%20D'apr%C3%A8s%20votre%20description%2C%20il%20semble%20que%20vous%20vouliez%20faire%20quelque%20chose%20comme%20%C3%A7a.%20%C3%80%20tout%20le%20moins%2C%20nous%20esp%C3%A9rons%20que%20les%20scripts%20vous%20aideront%20et%20vous%20donneront%20un%20point%20de%20d%C3%A9part%20pour%20r%C3%A9pondre%20%C3%A0%20vos%20besoins%20sp%C3%A9cifiques.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EJ'esp%C3%A8re%20que%20cela%20t'aides!%2C%3C%2FP%3E%0A%3CP%3EDS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-743360%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20G%C3%A9n%C3%A9ration%20d'un%20tableau%20r%C3%A9capitulatif%20avec%20les%20valeurs%20p%20%C3%A0%20partir%20d'un%20test%20t%20it%C3%A9ratif%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-743360%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESalut%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55778%22%20target%3D%22_blank%22%3E%40Moser_stefan%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EHeureux%20d'apprendre%20que%20vous%20avez%20pu%20automatiser%20la%20collecte%20et%20l'analyse%20des%20donn%C3%A9es.%20c'est%20toujours%20d'une%20grande%20aide%20d'accomplir%20ce%20genre%20de%20t%C3%A2ches%20car%20cela%20permet%20de%20gagner%20beaucoup%20de%20temps%20%C3%A0%20long%20terme.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EBon%20travail!%2C%3C%2FP%3E%0A%3CP%3EDS%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Generating summary table with p-values from iterative t-test

I am looking for a script that will automatically generate a summary/pivoted table of means and p-values for pairwise t-tests compared with one reference group. I am using JMP 17.

In the below data table, there are columns for SubjectId, measured BMI, measured VO2max, year, and Reference to indicate whether or not the row has a SubjectID that is a reference.

LinkageBee996_1-1710351011937.png

I have been generating summary tables manually (like the below) with means and then manually populating p-values for the one-sided t-tests.

LinkageBee996_2-1710351033325.png

I am interested specifically in the one-sided p-value results of a t-test between each SubjectID against the reference for each year to determine whether or not the non-reference SubjectID has a higher BMI or VO2max than the reference SubjectID. So far, I have been manually performing a pooled t-test and reporting the p-value and mean in a summary table I have created. Is there a way to iterate over a list of unique SubjectIDs and generate a summary table with these statistics performed in the way described using JSL? Additionally, a generalized way to add summary statistics (e.g. N for each SubjectID for each analysis) would be helpful.

8 REPLIES 8
txnelson
Super User

Re: Generating summary table with p-values from iterative t-test

I can not figure out what you are doing to the values in your main table, to the new display in your report table.  Please detail the steps you are taking to transform the data.

Jim
Moser_stefan
Level II

Re: Generating summary table with p-values from iterative t-test

Hi @txnelson and @SDF1 , I can hopefully clarify the request and maybe focus the scope a bit. I work with @LinkageBee996 so he asked me to help clarify.

 

The current workflow is as follows:

1) Start with the data table that @LinkageBee996 shared. To simplify things I'm going to ignore the year column and focus only on BMI.

2) Perform a simple two-sample t-test comparing each of the Subject ID's that are labelled as 'No' for reference to the Subject ID (A1454) that is labelled as 'Yes' for reference for a total of 5 comparisons (there's a reason we're doing this vs. doing something like a dunnetts test). We currently do this one-by-one by using the local data filter in the oneway platform under 'Fit Y by X'

3) Currently the results of the t-test (p-values and such) are then manually transcribed to a blank file (CSV or JMP table). Since we're doing one test at a time, using the 'Make into Data Table' is not practical as you end up with as many data tables as you have comparisons, then would need to combine into single data table. 

 

We'd like to automate this part of the analysis that is future proof for any new subject ID's that we may be testing, so the script should (in whatever order makes the most sense) do the following. This is what makes sense in my head from doing similar analyses in python and other software:

1. Create a list of the 'Non-reference' IDs

2.For each non-reference ID, perform a one-way analysis and two-sample t-test comparing it to the Subject ID that is labelled as 'Yes' for Reference (and let us assume that there will always be exactly one of these)

3. Save the results of the t-test to a data table. One note here: the default formats of 'make into data table' and 'make combined data table' don't save some of the metadata of the comparison - e.g., it'll tell your column header (X is subject ID, Y is BMI) but it won't tell you what the two values for X are like is shown at the top of the t-test results UI in the analysis ( 'A1454-B8565'). We would want to capture this information - you're comparing two things, what are the two things you're comparing?

4. Combine all the t-test results of every comparison in the dataset into a single data table. From there it'll just be a data manipulation problem that we can probably figure out to get it into whatever format is most useful

 

Hopefully this will provide some more clarity, let us know if there's still ambiguity around this

SDF1
Super User

Re: Generating summary table with p-values from iterative t-test

Hi @Moser_stefan and @LinkageBee996 ,

 

  I understand better what it is you're trying to do. Here are a few thoughts:

 

1. Based on your description, I still think restructuring your data table might be beneficial so that you can take advantage of the BY variable in the ANOVA analysis and then the Make Combined Data Table. It might take some thinking on how to reformat your data table, but I think it might be worthwhile. Even if you end up with many data tables, you can always do a Join. and combine them into a single data table in the end.

 

2. I think it's a great idea to automate such a process, especially if the analyses are to be repeated with future data sets. In that regard, I highly recommend that you take the time to learn JSL coding on your own. Everyone has their own specific needs when it comes to this kind of thing, and if you can learn JSL to benefit your organization, then it will propel you forward much faster than you can imagine. Scripting solutions to JMP problems makes life easier and makes the time to results much faster. There's a ton of good information out there, especially in the online Discussions forum, but also here. You can download a lot of good JMP documentation here, including the latest Scripting Guide PDF. Plus, there's also the Scripting Index under Help > Scripting Index. As mentioned before, if you're new to coding and scripting, consider using the workflow builder, which will generate the needed script for you. That being said, my recommendation is to learn it yourself so that you have more control/flexibility when it comes to coding your work.

 

3. Without having your actual data table to work with (even if it's anonymized to protect any sensitive information), it's very hard to generate a script for someone else that will work generically -- that is under "all" circumstances (of course nothing really ever works under all possible circumstances, but the point remains -- make it generalizable). Writing code for others heavily depends on the data table you're working with and the structure of the data within the table because it changes how you might approach the analysis and grouping results, etc.

 

  I know this isn't really the answer you're looking for, but I think that with some time invested in either restructuring your data and/or learning JSL, you will find the payout far exceeds the efforts put in.

 

Good luck!,

DS

Moser_stefan
Level II

Re: Generating summary table with p-values from iterative t-test

Thanks for the response @SDF1. The JSL path makes sense, I have some experience with it but certainly no expert so a good opportunity to grow our skills here. Regardless, having your perspective on potential paths to solve this problem is useful to see what some the options are. 

 

One thing that I'm struggling to see if how the 'by' function could be used - mainly because we have one grouping of data (the reference dataset) that we want to re-use in each comparison and one grouping (non-reference) that should be split 'by'. The only way I see this working is if we replicate the reference dataset for each comparison and then give it some unique variable (e.g., a 'comparison' column). Maybe that would work... we'll just need to think about if replicating data in the raw data table creates any other issues or risks.

 

Well you definitely gave us some food for thought and I appreciate the time you took to respond. We'll be sure to follow-up with whatever solution we come up with. 

SDF1
Super User

Re: Generating summary table with p-values from iterative t-test

Hi @Moser_stefan and @LinkageBee996 ,

 

  Happy to help out. And, I think I understand a little better with how your data is structured why the BY variable would be a bit difficult. It would likely take considerable restructuring of your data to get that to work out as I thought/intended.

 

  Instead, what you might be better off doing is taking subsets of your data based on the Subject ID column and perhaps also using the Reference column as well. Then, performing your t-test analysis on each of the Reference and Subject IDs of the subset data tables. Then, use the Make Into Data Table and then join the resulting data tables based on a column, for example Column 1 in the Make Into Data Table result. This might be the quickest way to get from your current data format to a solution without having to spend too much time restructuring your data.

 

  In this regard, I made up a mock data table (attached) with a Source column (like your Subject ID) and the several scripts. You can examine the scripts by right clicking and selecting edit, but you can also run them -- run them as grouped by Source A or B, and then run the last script which joins the two data tables together into a final data table. From your description, it sounds like you want to do something like this. At the very least, hopefully the scripts will help and give you a starting point to address your specific needs.

 

Hope this helps!,

DS

Moser_stefan
Level II

Re: Generating summary table with p-values from iterative t-test

@SDF1 I just wanted to follow-up and say that we did ultimately solve this. I plan to share the script but I have to hand it to you with some dummy data as we're pulling directly from our databases. I'll outline roughly what I scripted up here. This is fully automated from step 1-9:

1.User input parameters that pass to a 'WHERE' clause in the SQL queries

2.Execute scripts to pull two data tables and combine into single data table:

  • Reference data (one group)
  • Test data (many groups)

3.Create two global variables – a list of groups in test data and a list of groups in reference data (this second one is always length 1 for now, I decided to create it so in the future we could possibly have more than one reference group)

4.Pass lists through iterative pooled t-test using 'for' loops, comparing all possible combinations of the reference group with each test group

5.Save each t-test output to data table (use 'make combined data table' feature)

6. Combine each of the combined data tables (there's one for each comparison) into a single data table by appending

7.Clean up the resulting data table

  • Includes: renaming columns, filtering and sub-setting data, pivoting table, adding metadata such as group IDs

8.Calculate summary statistics by group from original tables (mean, stdev, N)

9.Join summary statistics to p-value table to generate final summary table

 

Here's a snapshot of the final format of the table.You'll see that we have 7 'test' groups all being compared to a single reference group. Each row provides the p-value of a pooled one-sided t-test for two metrics. I've anonymized the column names and scrambled the data (the p-values are correct but ignore the actual numbers in the mean columns at the end, they won't make sense). 

Moser_stefan_0-1712015315544.png

 

SDF1
Super User

Re: Generating summary table with p-values from iterative t-test

Hi @Moser_stefan ,

 

  Glad to hear that you've been able to automate the data collection and analysis. it's always a big help to complete these kinds of tasks as it saves so much time in the long run.

 

Great work!,

DS

SDF1
Super User

Re: Generating summary table with p-values from iterative t-test

Hi @LinkageBee996 ,

 

  I agree with @txnelson , it's difficult to understand how you're getting from your main data table to the one that you're generating manually. It might work better for your purpose to re-arrange your data table and organize it differently. This might require splitting it, or joining the data differently from how it's currently structured.

 

  The reason I mention this is that sometimes analyses can be done using a BY group variable, and then the analysis results can be easily obtained in a larger data table by right clicking a report table and selecting Make Combined Data Table. You can see if this is maybe what would work for you by using the Big Class.jmp sample data and doing an ANOVA Fit Y by X with :sex as the x-axis and :height as the Y (to see better how the make combined data table works, use :age as the BY variable). Perform your t-test, and then right click on the statistic table of interest and select make combined data table.

 

  If you do that for the t-test and also the Means for Oneway Anova, you can then join those data tables so that you have the mean value of each group along with the p-value for the t-test. It should end up looking something like this, which might be along the lines of what you're after.

SDF1_0-1710429804014.png

 

  Of course, you can always save the generated scripts in the data tables to put it all together into a single working script -- or use the Workflow Builder recorder and it can write the script for you, see here.

 

Hope this helps,

DS