# NOT RUN {
# Generate 1,000 values from Gamma(0.5, 1) x Lognormal(-1.5/2, 1.5) and
# estimate parameters
# }
# NOT RUN {
set.seed(123)
x <- rgamma(1000, 0.5, 1) * rlnorm(1000, -1.5/2, sqrt(1.5))
mle_gamma_lnorm(x, control = list(trace = 1))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab