Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hi Svend,

    I used stset, but in your case why did you stset testdate, as opposed to enddate? I thought the stset 'timevar' is supposed to represent the end of the study period (i.e. the point at which failure occured or the subject was no longer being observed)?

    In any case, I used stset with my data and I am almost certain I used the correct command. However, when I look at the output I see "probable error" and the number of failures being reported doesn't match with what I know of my data.

    Also, you are right. In my case the failure event is determined based on measurements that are taken on my subjects periodically (not pre-determined). How does that change the situation?
    Last edited by CEdward; 07 Jan 2015, 15:04.

    Comment


    • #17
      Hello everyone,

      Once I have stsetted my data, how would I go about calculating the incidence rate based on person months? And, would this require me to set a scale ( ) during the stset if my data are recorded as dates?

      Comment


      • #18
        The point with -stset- is that in this case it generates four time intervals (_t0 to _t) that don't overlap, so the sum of time-at-risk becomes right. To get the time-at-risk in months, use the scale() option. A month on average is 365.25/12 = 30.44 days:

        Code:
        .   stset testdate , failure(cvd==1) scale(30.44) origin(htdate) id(id)

        Comment

        Working...
        X