powered by
Refers to section 6.2.
fp_model(data, p, link = "logit")
a list of class fp_model with 5 items
type of data used for fitting model (aggregated or linelisting)
the dataframe used for fitting the model
a fitted glm model
seroprevalence
force of infection
the input data frame, must either have `age`, `pos`, `tot` columns (for aggregated data) OR `age`, `status` for (linelisting data)
the powers of the predictor.
the link function for model. Defaulted to "logit".
[stats::glm()] for more information on glm object
df <- hav_be_1993_1994 model <- fp_model( df, p=c(1.5, 1.6), link="cloglog") plot(model)
Run the code above in your browser using DataLab