Basics
relpois employs a custom link function of the Poisson variety
to estimate piecewise constant parametric excess hazards. The pieces
are determined by fot.breaks. A log(person-years) offset
is passed automatically to the glm call.
Formula usage
The formula can be used like any ordinary glm formula. The user must
define the outcome in some manner, which is usually lex.Xst after splitting
with e.g. lexpand. The exception is the possibility of including 
the baseline excess hazard terms by including the 
reserved term FOT in the formula.
For example, lex.Xst != 0 ~ FOT + agegr estimates a model with constant
excess hazards at the follow-up intervals as specified by 
the pertinent breaks used in splitting data,
as well as for the different age groups.
FOT is created ad hoc if it is used in the formula.
If you leave out FOT, the hazard is effectively
assumed to be constant across the whole follow-up time.
You can also simply use your own follow-up time interval variable that
you have created before calling relpois. However, when using 
FOT, relpois automatically checks for e.g. 
negative excess cases in follow-up intervals,
allowing for quickly finding splitting breaks
where model estimation is possible. It also drops any data outside the
follow-up time window.
Splitting and merging population hazard
The easiest way to both split and to include population hazard information is 
by using lexpand. You may also fairly easily do it by hand
by splitting first and then merging in your population hazard information.
Data requirements
The population hazard information must be available for each record and named
pop.haz. The follow-up time variable must be named "fot" e.g.
as a result of using lexpand. The lex.dur variable must also
be present, containing person-year information.