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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 435 views
  • 0 likes
  • 2 in conversation