BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jmbuote
Calcite | Level 5

Hello,

 

Trying to test the proportional hypothesis. Can anyone tell me what is wrong?

 

PROC PHREG DATA=CBD.MERGE_CBD_CB1;
MODEL T_OS*OS (0) = MEAN_SC_CB1 SENT_cat cms_AGE cms_TABAC / TIES=EFRON;
WHERE 1 <= N_CORE_CB1 <= 4;
OUTPUT OUT = cbd.resschoe_CB1 wtressch=schMEAN_SC_CB1 schSENT_cat schcms_AGE schcms_TABAC;
RUN;

PROC SORT DATA=cbd.merge_cbd_cb1;
BY T_OS;
RUN;
PROC SORT DATA=cbd.resschoe_CB1;
BY T_OS;
RUN;
DATA cbd.resschoe_CB1_END;
MERGE cbd.merge_cbd_cb1 cbd.resschoe_cb1;
WHERE 1 <= N_CORE_CB1 <= 4;
BY T_OS;
LOGT=LOG(T_OS)
RUN;

PROC SORT DATA=cbd.resschoe_cb1_end;
BY T_OS;
RUN;

*****This section is not working:*******

DATA CBD.RESSCHOE_CB1_END;
SET CBD.RESSCHOE_CB1_END;
WHERE 1 <= N_CORE_CB1 <= 4;
LOGT=LOG(T_OS);

RUN;

***It says: NOTE: Invalid argument to function LOG(0) at ligne 76 colonne 6.***

 

Cheers,

J

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
That's not an error, it's a message. It should also tell you the value of T_OS at that line and if you check it, it's likely not valid for the LOG fuction - most likely missing T_OS or overall data.

View solution in original post

1 REPLY 1
Reeza
Super User
That's not an error, it's a message. It should also tell you the value of T_OS at that line and if you check it, it's likely not valid for the LOG fuction - most likely missing T_OS or overall data.

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 531 views
  • 0 likes
  • 2 in conversation