Description Usage Arguments Details Value Author(s) Examples
View source: R/postinfectious.R
This function estimates the incubation period distribution of a post-infectious syndrome with maximum likelihood estimation. The incubation period distribution of the antecedent infection and the post-infectious syndrome are allowed to be lognormal ("LN
"), Weibull ("WB
") or gamma ("GM
") distributed. The data set is allowed to have cases with the actecedent diseases whose incuation periods come from different distributions (see Examples).
1 |
data |
A data.frame containing at least 4 columns. The first two columns represent (1) the time between the symptom onset of the antecedent infection and post-infectious syndrome and (2) the incubation period distribution of the antecedent infection (only " |
postinfect |
The incubation period distribution of the post-infectious disease. It can only be " |
theta |
A vector of two numbers as the initial value for optimisation. |
For each observed case, let S_{0} and S be the incubation period of the antecedent infection and post-infectious syndrome, respectively. As the antecedent infection is the antigenic factor of the post-infectious syndrome, they both share the same time of infection exposure. The difference between S_{0} and S, denoted by X, is the time between the two symptom onsets. Also let θ_{0} and θ be the set of the parameters of the distribution of S_{0} and S then the likelihood of such observed case is given by,
\int_{-∞}^{∞}f_0(S_0,θ_0)f(S_0+X,θ)dS_0
where f_0 and f are the probability density function of S_{0} and S, respectively. θ is then estimated by maximising the sum of likelihood of all observed cases.
Parameter |
Estimates of the parameters of the incubation period distribution of the post-infectious syndrome. |
SE |
Standard errors of |
AIC |
Akaike Information Criterion. |
Convergence |
The convergence message of |
Median |
The median incubation period distribution of the post-infectious syndrome. |
Theta.initial |
Initial values used in |
Distribution |
The Distribution assumed in the estimation, i.e. " |
Char Leung
1 2 3 4 5 6 7 8 |
$Parameter
[1] 2.536181 1.076804
$SE
[1] 0.4176702 0.3025093
$AIC
[1] 60.48329
$Convergence
[1] 0
$Median
[1] 12.63134
$Theta.initial
[1] 2.5 1.0
$Distribution
[1] "LN"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.