cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMPĀ® Marketplace
Choose Language Hide Translation Bar
ZHANDOUJI
Level I

how to get two prediction formula if i have one categorical variable and many continuous variables

if i have one categorical variable in my dataļ¼Œis there anaway to get two prediction formula in different level of categorical variable in one analysis report

1 ACCEPTED SOLUTION

Accepted Solutions

Re: prediction formula

I cannot think of an easy way to get the two formulas into a single window like this report, but there is a way to get the two models. First, I think fitting a single model is the way to go, but to get the report the way you want do this: When you are fitting your model put the categorical variable in the BY role rather than in the model. This will give you two separate models, one for each level of the categorical variable. Then, for each level, go to Estimates > Show Prediction Expression to get each model that you wish to see.

Dan Obermiller

View solution in original post

6 REPLIES 6
mzwald
Staff

Re: prediction formula

The prediction formula in this example would just be the mean of the different categorical levels.

From the Oneway analysis (Fit Y by X), click red triangle -> Save -> Save Predicted.

ZHANDOUJI
Level I

Re: prediction formula

the situation i mentioned is a multivariable model with one categorical variable and many continuous variables.and i want to get two model prediction equation which is in different categorical variable level.you konwn because of the interaction between categorical variable and continuous variableļ¼Œthe effect of continuous maybe have a little different  in different categorical variableļ¼Œlike thisļ¼š

 

ZHANDOUJI_0-1731027499277.png

this report is generated by design expertļ¼Œi wnat to know if JMP could do it

Re: prediction formula

I cannot think of an easy way to get the two formulas into a single window like this report, but there is a way to get the two models. First, I think fitting a single model is the way to go, but to get the report the way you want do this: When you are fitting your model put the categorical variable in the BY role rather than in the model. This will give you two separate models, one for each level of the categorical variable. Then, for each level, go to Estimates > Show Prediction Expression to get each model that you wish to see.

Dan Obermiller
ZHANDOUJI
Level I

Re: prediction formula

OKļ¼thank you very much.i thought of the same thingļ¼Œcuting my data to two part then fit models respectively.

just want to know if there are more easy way to achieve this.now i known

Re: how to get two prediction formula if i have one categorical variable and many continuous variables

You have a solution to your question, but I wonder about your motivation for this request. You can use the Prediction Profiler to explore the model, which includes the categorical factor. You can alternate between the two levels of this factor and visualize the change in the effects of the continuous factor.

ZHANDOUJI
Level I

Re: how to get two prediction formula if i have one categorical variable and many continuous variables

yes ļ¼Œthe practical significance of this question is little important.this is a problem in my text bookļ¼Œi just to finish my homework