View source: R/weibull_model.R
weibull_model | R Documentation |
Refers to section 6.1.2.
weibull_model(t, status = NULL, pos = NULL, tot = NULL)
t |
the time vector. |
status |
the serostatus vector (optional if pos & tot are provided). |
pos |
the positive count vector (optional if status is provided). |
tot |
the total count vector (optional if status is provided). |
list of class weibull_model with the following items
datatype |
type of datatype used for model fitting (aggregated or linelisting) |
df |
the dataframe used for fitting the model |
info |
fitted "glm" object |
sp |
seroprevalence |
foi |
force of infection |
[stats::glm()] for more information on the fitted "glm" object
df <- hcv_be_2006[order(hcv_be_2006$dur), ]
model <- weibull_model(
t=df$dur,
status=df$seropositive
)
plot(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.