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: 9,681

Re: qualitative variables in reg model

Looks like:


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




Ksharp
Trusted Advisor
Posts: 2,113

Re: qualitative variables in reg model

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
  • 101 views
  • 0 likes
  • 3 in conversation