boxes.MS and boxes.LexisWhen drawing boxes describing a multistate model a legend
explaining the numbers in the plot is required. legendbox does
this.
legendbox(x, y,
state = "State",
py = "Person-time",
begin = "no. begin",
end = "no. end",
trans = "Transitions",
rates = "\n(Rate)",
font = 1, ...)None.
x-coordinate of the center of the box.
y-coordinate of the center of the box.
Text describing the state
Text describing the risk time
Text describing the no. persons starting FU in state
Text describing the no. persons ending FU in state
Text describing the no. of transitions
Text describing the rates
Font to use for the text
Argumants passed on to tbox
Bendix Carstensen, http://bendixcarstensen.com
boxes.Lexis