Help using Base SAS procedures

qualitative variables in reg model

Reply
N/A
Posts: 0

qualitative variables in reg model

I want introduce in a proc reg a qualitative variable. My variable is genotype VKORC1 in 3 cathegories N/N, N/m, m/m. How can i recode this variable to introduce it in my regression model?
Super User
Posts: 10,023

Re: qualitative variables in reg model

Posted in reply to deleted_user
Looks like:


N/N N/m m/m
1 0 1
0 1 1
0 0 1




Ksharp
Trusted Advisor
Posts: 2,115

Re: qualitative variables in reg model

Posted in reply to deleted_user
When you generate your own recoding, as described, you only need to include two of the variables as the three categories represent two degrees of freedom.
Ask a Question
Discussion stats
  • 2 replies
  • 102 views
  • 0 likes
  • 3 in conversation