clean {eha}R Documentation

Clean a survival data frame

Description

Unnecessary cut spells are glued together, overlapping spells are "polished", etc.

Usage

clean(dat)

Arguments

dat A data frame with names enter, exit, event, id, birthdate.

Details

In case of overlapping intervals (i.e., a data error), "reasonable" changes are made. Everyone may not agree upon what is reasonable, though, so check the code to see exactly what happens.

Value

A data frame with the same variables as the input.

Author(s)

Göran Broström

References

Therneau, T.M. and Grambsch, P.M. (2000). Modeling Survival Data: Extending the Cox model. Springer.

See Also

coxreg, mlreg,


[Package Contents]