## females and males combined
components(LFP, n_comp = 3)
## females and males modelled independently
components(LFP, indep = TRUE, n_comp = 3)
## joint model for females and males
components(LFP, indep = FALSE, n_comp = 3)
## specify age groups
labels <- poputils::age_labels(type = "five", min = 15, max = 60)
components(LFP, age_labels = labels)
Run the code above in your browser using DataLab