powered by
Refers to section 6.1.2.
weibull_model(data)
list of class weibull_model with the following items
type of datatype used for model fitting (aggregated or linelisting)
the dataframe used for fitting the model
fitted "glm" object
seroprevalence
force of infection
the input data frame, must either have `t`, `pos`, `tot` column for aggregated data OR `t`, `status` for linelisting data
[stats::glm()] for more information on the fitted "glm" object
df <- hcv_be_2006[order(hcv_be_2006$dur), ] df$t <- df$dur df$status <- df$seropositive model <- weibull_model(df) plot(model)
Run the code above in your browser using DataLab