Announcement

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

  • Type mismatch when using stcrprep

    Hello everyone

    I have a problem with 'type mismatch' (r(109)) when running stcrprep.
    This is my initial stset command:

    stset a_timevar, enter(time a_entrydate) f(event=1,2) id(id)

    This seems to work. At least the st setting information looks as expected.
    Then I run:

    stcrprep, events(event) trans(1)

    Now I get the following error:

    stcrprep's delayed entry implementation is experimental
    Use with caution.
    type mismatch
    r(109);


    I do not think delayed entry is the problem, since I tried doing the same thing, but with origin(a_entrydate) instead of enter(time a_entrydate) in the initial stset command, resulting in the reduced but otherwise identical error message after running stcrprep:

    type mismatch
    r(109);


    Does anyone know/have an idea what causes the 'type mismatch' ?
    My Stata work is on an external server, so I cannot copy the code directly. Unfortunately. Of course I will provide further information if necessary for identifying the problem.

    Thank you very much for any help,
    Andreas Jensen

  • #2
    The 'type mismatch' problem is now solved. Changing the type of the id-variable from string to numeric did the job.
    However, another problem occurs. I posted the problem here: https://www.statalist.org/forums/for...nning-stcrprep

    Andreas

    Comment

    Working...
    X