Solved
New Contributor
Posts: 3

# How do i change the Y axis on proc lifetest to percents?

Hello,

I am trying to change the Y axis from proportion (between 0 to 1) to percent (between 0% to 100%) on the proc lifetest without success. I understand how to use the proc template even in the Failure graph and managed to change the minimum, the maximum and the tickvaluelist of the Y axis on the next statement in proc template:

"

yaxisopts=(label="Probability to &XXX" shortlabel="Failure"
linearopts=(viewmin=0 viewmax=1 tickvaluelist=(0 .2 .4 .6 .8 1.0)))

"

but when I try to change it to:

"

yaxisopts=(label="Probability to &XXX" shortlabel="Failure"
linearopts=(viewmin=0 viewmax=100 tickvaluelist=(0 20 40 60 80 100)))

"

it changes the Y axis but the line of the graph ranges from 0 to 1.

any suggestion on how to solve this?

I know that in the Gplot graph I can use the format for the Y axis. But it's not working here either...

Accepted Solutions
Solution
‎11-13-2017 08:07 AM
PROC Star
Posts: 1,190

## Re: How do i change the Y axis on proc lifetest to percents?

I'm not entirely sure on this one, but can't you simply edit the TICKVALUEFORMAT option instead of editing the actual values?

Correct me if I'm wrong @WarrenKuhfeld

All Replies
SAS Super FREQ
Posts: 496

## Re: How do i change the Y axis on proc lifetest to percents?

I don't remember the variable off hand, but if it is Y, and it appears like this:Y=Y

Then change it to Y=eval(100*Y)

New Contributor
Posts: 3

## Re: How do i change the Y axis on proc lifetest to percents?

Thanks for the response,

in this graph the Y is calculated cumulatively from the cases that appear in the X so I can't use this option.

Solution
‎11-13-2017 08:07 AM
PROC Star
Posts: 1,190

## Re: How do i change the Y axis on proc lifetest to percents?

I'm not entirely sure on this one, but can't you simply edit the TICKVALUEFORMAT option instead of editing the actual values?

Correct me if I'm wrong @WarrenKuhfeld

SAS Super FREQ
Posts: 496

## Re: How do i change the Y axis on proc lifetest to percents?

@draycut, that should work too!

New Contributor
Posts: 3

Thank you!
it worked!

PROC Star
Posts: 1,190

## Re: How do i change the Y axis on proc lifetest to percents?

Good to hear, was not sure myself

☑ This topic is solved.