cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
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#