cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
Jogger560
Level I

Change the default -1 1 coding of categorical variable to 0 1 coding

Dear JMP community, 

 

I found that when fitting a multiple linear regression (y ~ X1 + X2, X1 is a continuous and X2 is a categorical variable), by default JMP defines the dummy variable X2 as -1 1. Is there a way to change it to 0 1, which will be the same as the default dummy variable coding as R? Thanks!

10 REPLIES 10
MRB3855
Super User

Re: Change the default -1 1 coding of categorical variable to 0 1 coding

Hi @statman : Indeed, I don't disagree with what Mark wrote wrt continuous variables. But, that is not relevant for categorical factors. 

https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/nominal-factors.shtml#