My intention was to generate samples from two mixed and heavily right-skewed Gamma distributions using the package called bmixture
. Some examples are provided at https://stats.stackexchange.com/questions/226834/sampling-from-a-mixture-of-two-gamma-distributions. For example, I can use the following, although the distributions are not really skewed (instead they seems normal).
library(bmixture)
set.seed(345)
nn <- 10000
wt <- c(0.85,0.20) #weight2
mu <- c(20,70)
sd <- c(1,1.2)
x <- rmixgamma(n=nn,weight=wt,alpha=mu,beta=sd)
hist(x, breaks = 40, freq=FALSE)
Output:
How can one possibly incorporate the skewness parameter? Any help is highly appreciated!