if (FALSE) {
data(plasma)
m1 <- gamlss(betadiet ~ ga(~te(age, fiber)), sigma.formula = ~1,
nu.formula = ~ga(~te(age, fiber)), tau.formula = ~1,
family = BCTo, data = plasma)
centilesTwo(m1, 18:90, seq(2.5,38, 0.5), age, fiber, cent=0.05, dist=.1,
xlab="age", ylab='fiber')
centilesTwo(m1, 18:90, seq(2.5,38, 0.5), age, fiber, cent=0.95, dist=.1)
}
Run the code above in your browser using DataLab