where $\lambda(t)$ is the breast cancer incidences in carriers, $\lambda_0(t)$ is the background incidence for England and Wales (1973–77) and $\exp[g(t)]$ is the age-specific RR of breast cancer in carriers as compared to population rates.
Code
missing data is represented by 999
missing age of bc, oc, other (agebc=999 etc) are imputed with min(agelfu, agedeath).
The use of agelfu and agedeath is exchangeable in the sense that ages can be put in either columns without changing the results.
trait agebc2 and ageother2 are not used in this model.
age is the min of agebc, ageoc, ageother, or agelfu and agedeath if no cancer.
idis (disease status) is true only if agebc is the first cancer. We will need to change this if we consider any cancer as disease status
PAR is the global RR, which is passed to APEN at each step (with NPAR=1).
$\text{rrbr} =\exp[g(t)]$ is an array of size 80, set by PAR. It is 1 for age < 20, and exp(PAR) otherwise.
$p_1 =(1-0.0004)^2$ is non-carrier frequency, $p_2 = 1 - p1$ is the carrier frequency. we will need to replace it with our own allele frequency
$\text{ffncbr}(t)$ is the non-carrier breast cancer survival probability at age $t$, $\text{ffbr}_i$ is the carrier breast cancer survival probability at age $t$.
$\lambda_0(t)$ is the background incidence
$$\lambda_0(t) = \frac{\text{popbr}(t)}{100000} \frac{p_1 \text{ffncbr}(t) + p_2 \text{ffbr}(t)}{p_1 \text{ffncbr}(t) + p_2 \text{rrbr}(t) \text{ffbr}(t)}$$
$\lambda_1(t) = \lambda_0(t) \text{rrbr}(t)$ is the breast cancer incidences in carriers,
cumncbr is the cummulative non-carrier breast cancer incidence, cumbrrisk is the cumulative carrier breast cancer incidence
Algorithm
Overall algorithm:
$\lambda(t) = \lambda_0(t) \exp g(t)$
where $\lambda(t)$ is the breast cancer incidences in carriers, $\lambda_0(t)$ is the background incidence for England and Wales (1973–77) and $\exp[g(t)]$ is the age-specific RR of breast cancer in carriers as compared to population rates.
Code
999
bc
,oc
,other
(agebc=999
etc) are imputed withmin(agelfu, agedeath)
.agelfu
andagedeath
is exchangeable in the sense that ages can be put in either columns without changing the results.agebc2
andageother2
are not used in this model.age
is the min ofagebc, ageoc, ageother
, oragelfu
andagedeath
if no cancer.idis
(disease status) is true only ifagebc
is the first cancer. We will need to change this if we consider any cancer as disease statusPAR
is the global RR, which is passed toAPEN
at each step (withNPAR=1
).PAR
. It is1
forage < 20
, andexp(PAR)
otherwise.$$\lambda_0(t) = \frac{\text{popbr}(t)}{100000} \frac{p_1 \text{ffncbr}(t) + p_2 \text{ffbr}(t)}{p_1 \text{ffncbr}(t) + p_2 \text{rrbr}(t) \text{ffbr}(t)}$$ $\lambda_1(t) = \lambda_0(t) \text{rrbr}(t)$ is the breast cancer incidences in carriers,
cumncbr
is the cummulative non-carrier breast cancer incidence,cumbrrisk
is the cumulative carrier breast cancer incidence$\text{cumncbr} = \sum \lambda_0(t)$ $\text{ffncbr}(t+1) = \exp (-\text{cumncbr}_i)$
$\text{cumbrrisk} = \sum \lambda_1(t)$ $\text{ffbr}(t+1) = \exp(-\text{cumbrrisk}_i)$
isex
is 1 for male, and 2 for female.for each
GENOTYPE
,is=1
for wildtype1/1
, andis=2
for1/2
or2/2
(which we do not have)output, log likelihood, and
PAR(1)
.