Hello everyone,
I have another question for which I could not find an answer by myself: I'm trying to create a graph for a survival date analysis (-sts graph-). The command works fine but since there are some outliers with a very high value for the duration variable the graph extents very far to the right. I tried the option -xscale()-, but despite the option is accepted by Stata it does not change the look of the graph. In line graphs, I solve this problem by using the -if- option. In this case, however, the -if- option would also affect the calculation of the Kaplan-Meier survival function, which I would like to avoid. Is there any way to accomplish my goal?
Here is my full command für the graph:
[CODE
]#delimit ;
sts graph, ci
title("")
xtitle("Elapsed time (days)", size(small)) ytitle("Probability of reaching the respective duration", size(small))
xlabel(0(200)1000, labsize(small))
xscale(range(0 1000))
ylabel(, labsize(small) angle(horizontal))
legend(off)
;
#delimit cr
[/CODE]
Thanks in advance!
Best regards,
Sebastian
I have another question for which I could not find an answer by myself: I'm trying to create a graph for a survival date analysis (-sts graph-). The command works fine but since there are some outliers with a very high value for the duration variable the graph extents very far to the right. I tried the option -xscale()-, but despite the option is accepted by Stata it does not change the look of the graph. In line graphs, I solve this problem by using the -if- option. In this case, however, the -if- option would also affect the calculation of the Kaplan-Meier survival function, which I would like to avoid. Is there any way to accomplish my goal?
Here is my full command für the graph:
[CODE
]#delimit ;
sts graph, ci
title("")
xtitle("Elapsed time (days)", size(small)) ytitle("Probability of reaching the respective duration", size(small))
xlabel(0(200)1000, labsize(small))
xscale(range(0 1000))
ylabel(, labsize(small) angle(horizontal))
legend(off)
;
#delimit cr
[/CODE]
Thanks in advance!
Best regards,
Sebastian
Comment