cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-218232%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EConfronto%20di%20singoli%20gruppi%20con%20un%20gruppo%20di%20base%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218232%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eun%20problema%20di%20statistica%20medica%20per%20me%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20una%20variabile%20di%20risultato%20discreta%20-%20viva%20-%201%2F0%3C%2FP%3E%3CP%3E-%20pi%C3%B9%20gruppi%2C%20che%20ho%20creato%20inserendo%20una%20variabile%20continua%20per%20percentili%20(0-25%2C25-50%2C50-75%2C75-100)%3C%2FP%3E%3CP%3E-%20per%20ogni%20gruppo%2C%20ho%20creato%20una%20colonna%20specifica%20(0-25%2C%2025-50%2C%2050-75%2C%2075-100)%20che%20%C3%A8%20di%20nuovo%201%2F0%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eil%20mio%20problema%3A%3C%2FP%3E%3CP%3EVoglio%20impostare%20tutti%20i%20pazienti%20nel%20gruppo%201%20(0-25)%20come%20gruppo%20basale%20e%20confrontare%20ciascun%20individuo%20(25-50%2C%2050-75%2C75-100)%20con%20il%20gruppo%20basale%20(0-25)%20e%20successivamente%20calcolare%20OR%20in%20relazione%20con%20il%20gruppo%20di%20base%20(0-25)%20-%20esempio%20allegato.%3C%2FP%3E%3CTABLE%20border%3D%221%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3EPaziente%3C%2FTD%3E%3CTD%3ERisultato%3C%2FTD%3E%3CTD%3E0-25%25%3C%2FTD%3E%3CTD%3E25-50%25%3C%2FTD%3E%3CTD%3E50-75%25%3C%2FTD%3E%3CTD%3E75-100%25%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EUN%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EB%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EC%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ED%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EE%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMille%20grazie%20per%20l'aiuto%20e%20le%20idee!%20Marc%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-218242%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Confronto%20di%20singoli%20gruppi%20con%20un%20gruppo%20di%20base%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218242%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ECiao%2C%20%3CBR%20%2F%3E%20Non%20sono%20sicuro%20che%20possiamo%20aiutarti%20con%20questo%20livello%20di%20informazioni.%20Potresti%20chiarire%20un%20paio%20di%20punti%3F%20%3CBR%20%2F%3E%20%C3%88%20corretto%20che%20per%20ogni%20gruppo%20A%20-%20E%2C%20tu%20abbia%20la%20frequenza%20effettiva%20di%20morte%20che%20hai%20espresso%20come%201%20o%200%20a%20seconda%20del%20quartile%20a%20cui%20appartengono%3F%20%3CBR%20%2F%3E%20Qual%20%C3%A8%20la%20relazione%20tra%20la%20colonna%20Risultato%20e%20le%20altre%20colonne%20(se%20presenti)%3F%20%3CBR%20%2F%3E%20Ancora%20pi%C3%B9%20importante%2C%20qual%20%C3%A8%20la%20domanda%20scientifica%20%2F%20medica%20che%20devi%20affrontare%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-218243%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Confronto%20di%20singoli%20gruppi%20con%20un%20gruppo%20di%20base%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218243%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%20-%20per%20chiarezza%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELa%20colonna%20A%20rappresenta%20i%20singoli%20pazienti%20-%20circa%203000%20-%20Ho%20appena%20elencato%20qui%20solo%20come%20esempio%20(AE)%3C%2FP%3E%3CP%3EColonna%20B%20-%20esito%20-%20la%20mia%20variabile%20di%20risultato%20(Y)%3C%2FP%3E%3CP%3EColonna%20C%2C%20D%2C%20E%2C%20F%20-%20distribuzione%20di%20gruppo%20correlata%20alla%20loro%20distribuzione%20percentile%20e%20raggruppata%20per%20percentili%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELa%20colonna%20C%20sarebbe%20il%20mio%20gruppo%20di%20riferimento%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQual%20%C3%A8%20il%20risultato%20(B)%20per%20quanto%20riguarda%20OR%20per%20i%20pazienti%20nei%20gruppi%20da%20D%20a%20C%2C%20da%20gruppo%20E%20a%20C%20e%20da%20gruppo%20F%20a%20C.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGrazie%20mille%20per%20aver%20esaminato%20questo.%20Marc%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-218244%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Confronto%20di%20singoli%20gruppi%20con%20un%20gruppo%20di%20base%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218244%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EVorrei%20impostare%20la%20tabella%20dei%20dati%20in%20modo%20diverso.%203%20colonne%2C%20Paziente%2C%20Risultato%2C%20Percentuale.%20Il%20percentile%20avrebbe%20i%20valori%20%220-25%22%2C%20%2226-50%22%20ecc.%20Quindi%2C%20assicurati%20che%20tutte%20le%20colonne%20siano%20impostate%20su%20un%20tipo%20di%20modellazione%20di%20%22Nominale%22.%20Quindi%20puoi%20eseguire%20la%20piattaforma%20Fit%20Y%20by%20X%20e%2C%20utilizzando%20un%20filtro%20dati%20locale%2C%20che%20dovresti%20impostare%20per%20selezionare%20su%20Percentile%2C%20puoi%20quindi%20selezionare%20il%20raggruppamento%20che%20desideri%20confrontare%20e%20JMP%20eseguir%C3%A0%20un'analisi%20Chi%20Square%20sui%20gruppi%20.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-218245%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Confronto%20di%20singoli%20gruppi%20con%20un%20gruppo%20di%20base%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218245%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ERispondo%20al%20suggerimento%20di%20Txnelson%20e%20aggiungerei%20due%20cose.%26nbsp%3B%20Innanzitutto%2C%20considera%20l'utilizzo%20dei%20percentili%20non%20raggruppati%3A%20puoi%20sempre%20raggrupparli%20in%20un%20secondo%20momento%2C%20ma%20non%20c'%C3%A8%20motivo%20di%20perdere%20dettagli%20nei%20dati.%20In%20secondo%20luogo%2C%20questo%20tipo%20di%20dati%20sono%20spesso%20dati%20censurati%20-%20in%20altre%20parole%2C%20le%20persone%20che%20non%20sono%20morte%20non%20sono%20morte%20%3CEM%3E%20ancora%20%3C%2FEM%3E%20.%26nbsp%3B%20Solo%20se%20hai%20un%20contesto%20in%20cui%20il%20periodo%20di%20trattamento%20(o%20qualunque%20periodo%20di%20tempo%20stai%20usando)%20%C3%A8%20finito%2C%20la%20variabile%20di%20risposta%200%2F1%20%C3%A8%20il%20modo%20corretto%20di%20vederlo.%26nbsp%3B%20Invece%2C%20potresti%20provare%20la%20piattaforma%20di%20sopravvivenza%20(ad%20esempio%2C%20adattarsi%20al%20modello%20di%20rischio%20proporzionale)%20-%20ma%20avresti%20bisogno%20di%20avere%20una%20variabile%20di%20risposta%20continua%20che%20di%20solito%20%C3%A8%20il%20momento%20in%20cui%20si%20verifica%20la%20morte.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-218267%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Confronto%20di%20singoli%20gruppi%20con%20un%20gruppo%20di%20base%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218267%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EGrazie%20ad%20entrambi%3A%20il%20filtro%20dati%20locale%20mi%20ha%20permesso%20di%20confrontare%20facilmente%20questi%20gruppi.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20effetti%2C%20per%20la%20prima%20volta%20ho%20eseguito%20il%20modello%20misto%20con%20variabile%20continua%20(time%20to%20death)%2C%20tuttavia%2C%20poich%C3%A9%20molte%20riviste%20mediche%20anche%20di%20forte%20impatto%20tendono%20maggiormente%20al%20binning%20delle%20variabili%20(che%20personalmente%20non%20supporta)%2C%20l'ho%20aggiunto%20come%20nuova%20funzionalit%C3%A0%20per%20il%20mio%20articolo.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGestisco%20anche%20il%20rischio%20proporzionale%20di%20cox%2C%20ma%20ora%20ho%20limitato%20la%20mia%20analisi%20ai%20modelli%20multivariati%2C%20che%20sembrano%20anche%20meglio%20adattarsi%20usando%20solo%20variabili%20nominali%2C%20poich%C3%A9%20miste%20(continue%20e%20variabili%20nominali)%20mi%20danno%20molte%20volte%20una%20mancanza%20positiva%20di%20test%20di%20adattamento.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGrazie%20ancora%20per%20il%20vostro%20aiuto%20!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
marc1
Level III

Comparing individual groups to a baseline group

Hello,

 

a medical statistic problem for me:

 

- a discrete outcome variable - alive - 1/0

- multiple groups, which I created by binning a continuos variable per percentiles (0-25,25-50,50-75,75-100)

- for each group, I created a specific column (0-25, 25-50, 50-75, 75-100) which is again 1/0

 

my problem:

I want to set all the patients in group 1 (0-25) as a baseline group and compare each individual (25-50, 50-75,75-100) to the baseline group (0-25) and subsequently calculate OR in relation to the baseline group (0-25) - example attached.

PatientOutcome0-25%25-50%50-75%75-100%
A10100
B11000
C10010
D00001
E01000

 

Many thanks for your help and ideas ! Marc

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: Comparing individual groups to a baseline group

I would setup you data table differently. 3 columns, Patient, Outcome, Percentile. Percentile would have the values "0-25", "26-50" etc. Then, make sure all of your columns are set to a Modeling Type of "Nominal". Then you can run the Fit Y by X platform, and by using a Local Data Filter, that you would set to select on Percentile, you can then select the grouping you want to compare, and JMP would perform a Chi Square analysis on the groups.
Jim

View solution in original post

dale_lehman
Level VII

Re: Comparing individual groups to a baseline group

I echo txnelson's suggestion and would add two things.  First, consider using the percentiles ungrouped - you can always group them later, but there is no reason to lose detail in the data. Second, this type of data is often censored data - in other words, the people who have not died have not died yet.  Only if you have a context where the treatment period (or whatever time period you are using) is over, is the 0/1 response variable the correct way to view this.  Instead, you might try the survival platform (e.g., fit prorportional hazard model) - but you would need to have a continous response variable which is usually the time at which death occurs.

View solution in original post

5 REPLIES 5
Thierry_S
Super User

Re: Comparing individual groups to a baseline group

Hi,
I'm not sure we can help you with this level of information. Could you clarify a couple of points?
Is it correct that for each groups A - E, you have the actual frequency of death which you expressed as 1 or 0 depending on the quartile these belong to?
What is the relationship between the Outcome column and the other columns (if any)?
Most importantly, what is the scientific / medical question you need to address?
Thierry R. Sornasse
marc1
Level III

Re: Comparing individual groups to a baseline group

Hi - for clarity 

 

Column A represents individual patients - about 3000 - I just listed here just as example (A-E)

Column B - outcome - my outcome variable (Y)

Column C, D, E, F - group distribution related to their percentile distribution and binned for percentiles

 

Column C would be my reference group

 

What is the outcome (B) in regards to OR for patients in group D to C, group E to C and group F to C.

 

Thanks a lot for looking into this. Marc

 

 

txnelson
Super User

Re: Comparing individual groups to a baseline group

I would setup you data table differently. 3 columns, Patient, Outcome, Percentile. Percentile would have the values "0-25", "26-50" etc. Then, make sure all of your columns are set to a Modeling Type of "Nominal". Then you can run the Fit Y by X platform, and by using a Local Data Filter, that you would set to select on Percentile, you can then select the grouping you want to compare, and JMP would perform a Chi Square analysis on the groups.
Jim
dale_lehman
Level VII

Re: Comparing individual groups to a baseline group

I echo txnelson's suggestion and would add two things.  First, consider using the percentiles ungrouped - you can always group them later, but there is no reason to lose detail in the data. Second, this type of data is often censored data - in other words, the people who have not died have not died yet.  Only if you have a context where the treatment period (or whatever time period you are using) is over, is the 0/1 response variable the correct way to view this.  Instead, you might try the survival platform (e.g., fit prorportional hazard model) - but you would need to have a continous response variable which is usually the time at which death occurs.

marc1
Level III

Re: Comparing individual groups to a baseline group

Thank you both - the local data filter made it easy for me to compare those groups.

 

Indeed I first run the mixed model with continuos variable (time to death), however as many even high impact medical journals tend more to binning of variables (which I personally dont support) I added this as a new feature for my article. 

 

I also run cox proportional hazard, but I restricted my analysis now to multivariate models , which seem also better to fit using nominal variables only , as mixed (continuos and nominal variables) give me a lot of times a positive lack of fit test.

 

Thanks again for your help ! 

Recommended Articles