powered by
Refers to section 11.1 - 11.4
mixture_model( antibody_level, breaks = 40, pi = c(0.2, 0.8), mu = c(2, 6), sigma = c(0.5, 1) )
a list of class mixture_model with the following items
the dataframe used for fitting the model
list of 3 items parameters, distribution and constraints for the fitted model
fitted distribution for susceptible
fitted distribution for infected
- vector of the corresponding raw antibody level
- number of intervals which the antibody_level are grouped into
- proportion of susceptible, infected
- a vector of means of component distributions (vector of 2 numbers in ascending order)
- a vector of standard deviations of component distributions (vector of 2 number)
df <- vzv_be_2001_2003[vzv_be_2001_2003$age < 40.5,] data <- df$VZVmIUml[order(df$age)] model <- mixture_model(antibody_level = data) model$info plot(model)
Run the code above in your browser using DataLab