BookmarkSubscribeRSS Feed
JHCNU
Calcite | Level 5

Logit 분석시 Variable C14 should be either numeric or specified in the CLASS statement. 라고 뜨는데, 해당 변수는 1,2,3,4로 4점 척도를 사용하는 변수인데 저런 내용이 나와서 어떻게 해결하면 좋을지 여쭤봅니다

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Apparently variable C14 is a character variable with values 1 2 3 4 and so it must be in the CLASS statement; or you have to create a numeric variable with the same values and use that.

--
Paige Miller
Rick_SAS
SAS Super FREQ

The variable C14 is probably a character variable. To see the type of the variable, use

proc contents data=HAVE ;
   ods select Variables;
run;

To solve the problem, use a CLASS statement:
     class C14;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Discussion stats
  • 2 replies
  • 1072 views
  • 0 likes
  • 3 in conversation