library("gamlss2")
## package and random seed
library("distributions3")
set.seed(6020)
## one normal distribution
X <- GAMLSS2("NO", c(mu = 1, sigma = 2))
X[1] "GAMLSS2 NO(mu = 1, sigma = 2)"
## two normal distributions
X <- GAMLSS2("NO", cbind(c(1, 1.5), c(0.6, 1.2)))
X[1] "GAMLSS2 NO(mu = 1.0, sigma = 0.6)" "GAMLSS2 NO(mu = 1.5, sigma = 1.2)"
## three Weibull distributions
X <- GAMLSS2("WEI", list(mu = c(1, 1, 2), sigma = c(1, 2, 2)))
X[1] "GAMLSS2 WEI(mu = 1, sigma = 1)" "GAMLSS2 WEI(mu = 1, sigma = 2)"
[3] "GAMLSS2 WEI(mu = 2, sigma = 2)"
## see ?gamlss.dist::GAMLSS for the remainder of this example