cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-247228%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EANCOVA%20avec%201%20variable%20X%20continue%20et%202%20variables%20X%20cat%C3%A9gorielles%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247228%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EJ'essaie%20d'ex%C3%A9cuter%20une%20ANCOVA%20sur%20un%20ensemble%20de%20donn%C3%A9es%20avec%20une%20variable%20Y%20continue%20(d%C3%A9bit)%20et%20une%20variable%20X%20continue%20(Pr%C3%A9cipitations).%20De%20plus%2C%20j'ai%20deux%20variables%20cat%C3%A9gorielles%20%22P%C3%A9riode%22%20(A%20et%20B)%20et%20%22Station%22%20(1%2C%202%2C%203%2C%204%20et%205).%20Mon%20objectif%20est%20d'explorer%20la%20relation%20entre%20le%20d%C3%A9bit%20et%20les%20pr%C3%A9cipitations%20au%20sein%20de%20chaque%20p%C3%A9riode%20-%20en%20comparant%20les%20pentes%20de%20ces%20relations%20entre%20les%20stations%2C%20puis%20de%20comparer%20les%20pentes%20de%20ces%20relations%20au%20sein%20de%20chaque%20station%20au%20cours%20des%20p%C3%A9riodes.%20Le%20plus%20int%C3%A9ressant%2C%20c'est%20que%20j'ai%20d%C3%A9j%C3%A0%20r%C3%A9ussi%20cela%20il%20y%20a%20plus%20d'un%20an%2C%20j'ai%20les%20r%C3%A9sultats%2C%20mais%20maintenant%20je%20dois%20le%20r%C3%A9ex%C3%A9cuter%20et%20je%20n'ai%20aucune%20id%C3%A9e%20de%20comment%20je%20l'ai%20fait.%20Je%20suppose%20que%20c'est%20un%20mod%C3%A8le%20en%20forme%2C%20mais%20j'ai%20un%20bloc%20c%C3%A9r%C3%A9bral%20en%20ce%20moment.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-247262%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20ANCOVA%20avec%201%20variable%20X%20continue%20et%202%20variables%20X%20cat%C3%A9gorielles%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247262%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMerci%20%C3%A0%20vous%20deux.%20Dan%2C%20j'ai%20essay%C3%A9%20votre%20m%C3%A9thode%20mais%20j'ai%20eu%20du%20mal%20%C3%A0%20interpr%C3%A9ter%20les%20r%C3%A9sultats%20ou%20%C3%A0%20reproduire%20mes%20r%C3%A9sultats%20pr%C3%A9c%C3%A9dents.%20M%C3%AAme%20si%20je%20suis%20d%E2%80%99accord%2C%20c%E2%80%99est%20ainsi%20que%20j%E2%80%99ai%20%C3%A9galement%20pens%C3%A9%20mener%20cette%20analyse.%20En%20fin%20de%20compte%2C%20j'ai%20proc%C3%A9d%C3%A9%20de%20mani%C3%A8re%20lente%20et%20stupide%20et%20j'ai%20pu%20r%C3%A9p%C3%A9ter%20mon%20r%C3%A9sultat.%20J'ai%20ex%C3%A9cut%C3%A9%20un%20mod%C3%A8le%20d'ajustement%20avec%20Y%20%3A%20Streamflow%2C%20By%20%3A%20Period%20et%20Effects%20avec%20Full%20Factorial%20%3A%20Precipitation%2C%20Station%2C%20Precip%20X%20Station.%20Ensuite%2C%20sur%20les%20r%C3%A9sultats%20de%20chaque%20p%C3%A9riode%2C%20j'ai%20ex%C3%A9cut%C3%A9%20Estimations%20-%20Comparaisons%20multiples%20-%20Toutes%20par%20paires.%20Cela%20m'a%20donn%C3%A9%20l'analyse%20des%20pentes%20entre%20stations%20pour%20chaque%20p%C3%A9riode.%20Ensuite%2C%20je%20suis%20revenu%20et%20j'ai%20r%C3%A9ex%C3%A9cut%C3%A9%20le%20mod%C3%A8le%20d'ajustement%20en%20changeant%20la%20variable%20By%20avec%20Station%20et%20la%20variable%20d'effet%20P%C3%A9riode.%20J'ai%20effectu%C3%A9%20ce%20test%20et%20effectu%C3%A9%20des%20ANCOVA%20unidirectionnelles%20sur%20chaque%20station.%20J'ai%20pu%20r%C3%A9p%C3%A9ter%20mes%20r%C3%A9sultats%20initiaux.%20Je%20sais%20que%20la%20fa%C3%A7on%20dont%20je%20l'ai%20fait%20%C3%A0%20l'origine%20%C3%A9tait%20beaucoup%20plus%20fluide%20que%20cela%2C%20si%20seulement%20j'%C3%A9crivais%20ces%20choses%26nbsp%3B!%20Merci%20encore.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-247241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20ANCOVA%20avec%201%20variable%20X%20continue%20et%202%20variables%20X%20cat%C3%A9gorielles%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EJe%20suis%20d'accord%20avec%20tout%20ce%20que%20sugg%C3%A8re%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3194%22%20target%3D%22_blank%22%3E%40Dan_Obermiller%3C%2FA%3E%20.%20De%20plus%2C%20vous%20souhaiterez%20peut-%C3%AAtre%20commencer%20votre%20analyse%20en%20passant%20un%20peu%20de%20temps%20dans%20Graph%20Builder%20%C3%A0%20explorer%20la%20r%C3%A9ponse%20en%20fonction%20des%20x.%20L'inclusion%20d'un%20filtre%20de%20donn%C3%A9es%20local%20et%20peut-%C3%AAtre%20que%20certaines%20animations%20pourraient%20vraiment%20%C3%A9gayer%20votre%20exploration%20visuelle%20des%20donn%C3%A9es.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-247236%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20ANCOVA%20avec%201%20variable%20X%20continue%20et%202%20variables%20X%20cat%C3%A9gorielles%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247236%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EJe%20ne%20fais%20que%20deviner%20ici%20car%20je%20n'ai%20pas%20vos%20r%C3%A9sultats%20pour%20continuer%2C%20mais%20je%20pense%20que%20ce%20serait%20Fit%20Model.%20Sp%C3%A9cifiez%20Streamflow%20comme%20Y.%20Mettez%20en%20surbrillance%20les%20colonnes%20Pr%C3%A9cipitations%2C%20P%C3%A9riode%20et%20Station%20et%20cliquez%20sur%20le%20bouton%20Macros.%20Choisissez%20Factorielle%20compl%C3%A8te%20et%20cliquez%20sur%20Ex%C3%A9cuter%20(Remarque%26nbsp%3B%3A%20d'apr%C3%A8s%20votre%20description%2C%20je%20pense%20que%20vous%20souhaitez%20une%20interaction%20%C3%A0%20trois%20voies%20dans%20le%20mod%C3%A8le).%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3ELes%20termes%20d'interaction%20dans%20le%20r%C3%A9sultat%20indiqueront%20si%20la%20pente%20des%20pr%C3%A9cipitations%20change%20pour%20les%20diff%C3%A9rentes%20p%C3%A9riodes%20ou%20stations.%20Faites-nous%20savoir%20si%20cela%20correspond%20%C3%A0%20votre%20analyse%20pr%C3%A9c%C3%A9dente.%20Dans%20la%20n%C3%A9gative%2C%20pourriez-vous%20fournir%20certains%20des%20r%C3%A9sultats%20de%20cette%20analyse%20pr%C3%A9c%C3%A9dente%26nbsp%3B%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
RVhydrA
Level III

ANCOVA with 1 continuous X and 2 categorical X variables

I am trying to run an ANCOVA on a dataset with a continuous Y variable (streamflow) and a continuous X variable (Precipitation), additionally I have two categorical variables "Period" (A and B) and "Station" (1, 2, 3, 4, and 5). My goal is to explore the relation between streamflow and precipitation within each period - comparing the slopes of those relations across stations, and then compare the slopes of those relations within each station across the periods. The kicker is that I already successfully did this over a year ago, I have the results, but now I need to rerun it and I have no idea how I did it. I assume its in fit model but I've got a brain block at the moment. 

3 REPLIES 3

Re: ANCOVA with 1 continuous X and 2 categorical X variables

Just guessing here as I do not have your results to go on, but I think it would be Fit Model. Specify Streamflow as the Y. Highlight the Precipitation, Period, and Station columns and click the Macros button. Choose Full Factorial and click Run (Note: from your description I believe you do want the three-way interaction in the model).

 

The interaction terms in the output will indicate if the Precipitation slope is changing for the various periods or stations. Let us know if this matches your previous analysis. If not, could you provide some of the results from that previous analysis?

Dan Obermiller
P_Bartell
Level VIII

Re: ANCOVA with 1 continuous X and 2 categorical X variables

I agree with everything @Dan_Obermiller suggests. In addition, you might want to start your analysis with some time spent in Graph Builder exploring the response as a function of the x's. Including a local data filter, and maybe some animations could really jazz up your visual exploration of the data.

RVhydrA
Level III

Re: ANCOVA with 1 continuous X and 2 categorical X variables

Thanks to both of you. Dan, I tried your method but found it hard to interpret the results or replicate my previous results. Though I agree, that is how I also thought to conduct this analysis. Ultimately, I went about it the slow stupid way and was able to repeat my result. I ran a fit model with Y: Streamflow, By: Period, and Effects with Full Factorial: Precipitation, Station, Precip X Station. Then on the results for each period I ran Estimates - Multiple Comparisons - All Pairwise. This gave me the analysis of slopes between stations for each period. Then I went back and reran the fit model switching the By variable with Station and the effect variable Period. Ran that test and performed one-way ANCOVAs on each station. I was able to repeat my original results. I know the way I originally did it was much smoother than that, If only I wrote these things down! Thanks again.