## Simulate mixture data:
mixt1 <- twoComp_mixt(n = 800, weight = 0.33,
comp.dist = list("gamma", "exp"),
comp.param = list(list("shape" = 2, "scale" = 0.5),
list("rate" = 0.25)))
data1 <- getmixtData(mixt1)
## Define the admixture model:
admixMod1 <- admix_model(knownComp_dist = mixt1$comp.dist[[2]],
knownComp_param = mixt1$comp.param[[2]])
## Estimation step:
estim_PS(samples = data1, admixMod = admixMod1, method = 'fixed')
Run the code above in your browser using DataLab