Hello!
I have the following code to plot probability density for a Weibull mixture model (of two Weibull distributions). I'd like to plot cummulative density and also print calculation output based on the above probability density result. Could anyone help me code it?
library(mixR)
library(ggplot2)
set.seed(10)
x = rmixweibull(200, c(0.7, 0.3), c(27.7, 55.8), c(5.9, 20.5))
def1_weibull = mixfit(x, family = 'weibull', ncomp = 2); def1_weibull
plot(def1_weibull) #plot PDF
d1 = density(def1_weibull)
d2 = density(def1_weibull, at = 0)
print(d1) #generates PDF calculation output
Thank you very much for your time!