Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73433

Limiting observation time in survival analyses

$
0
0
I have a dataset on blood pressure control over time. The event is blood pressure control (bp_control where 1 is yes and 0 is no). Time is measured in days. I want to limit the period of observation to 500 days. I wrote the following code but I keep getting this error "invalid numlist".

Code:
stset days, failure(bp_control==1) id(ptid) exit(bp_control==1 time>days(500))

I will appreciate help to fix this error.

Thank you,
Al Bothwell

Viewing all articles
Browse latest Browse all 73433

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>