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;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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