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

I am using PHREG and using the HAZARDRATIO stmt.  The default for the units = option is 1 and can be changed.  This is easy to understand with say whole numbers such as AGE (e.g., 1yr, 5yrs, 10yrs). But what is the 1-unit change if an independent variable measure has decimals? E.g., is a 1-unit change in 1.001 = 1.002 or 2.001? Is a 1-unit change in 0.005 = 0.006 or 1.005?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hello @sasuser1111,

 

The definition of 1 ("one unit") does not depend on the number of decimals the values might have. So in your examples the comparisons are 2.001 vs. 1.001 and 1.005 vs. 0.005, respectively. Consider that values of the same variable can have different numbers of decimals and that a dependence on decimals would be problematic anyway in view of the binary internal values of numeric variables.

View solution in original post

2 REPLIES 2
FreelanceReinh
Jade | Level 19

Hello @sasuser1111,

 

The definition of 1 ("one unit") does not depend on the number of decimals the values might have. So in your examples the comparisons are 2.001 vs. 1.001 and 1.005 vs. 0.005, respectively. Consider that values of the same variable can have different numbers of decimals and that a dependence on decimals would be problematic anyway in view of the binary internal values of numeric variables.

sasuser1111
Calcite | Level 5

Thanks! Appreciated.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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
  • 2 replies
  • 1028 views
  • 1 like
  • 2 in conversation