Description Usage Format Author(s) Source References Examples
The data come from experiments with a plant where ammonia is oxidized to acid nitric.
1 |
A data-frame with 21 observations and 4 columns:
stackloss
: the percentage of ammonia lost.
airflow
: the air flow to the plant.
watertemp
: the cooling water inlet temperature.
acidconc
: the acid concentration.
Josmar Mazucheli jmazucheli@gmail.com
Bruna Alves pg402900@uem.br
https://support.sas.com/rnd/app/stat/examples/BayesQuantile/quantile.htm
Brownlee, K. A., (1965). Statistical Theory and Methodology in Science and Engineering. New York: John Wiley & Sons.
Yu, K., and Moyeed, R. A., (2001). Bayesian quantile regression. Statistics and Probability Letters, 54(4) 437–447.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(ammonia, package = "ugomquantreg")
library(gamlss)
tau <- 0.50
fit.logit <- gamlss(stackloss ~ airflow + watertemp + acidconc, data = ammonia,
family = UGOM(sigma.link="identity"))
tau <- 0.50
fit.probit <- gamlss(stackloss ~ airflow + watertemp + acidconc,
data = ammonia, family = UGOM(mu.link = "probit", sigma.link = "log"))
fittaus <- lapply(c(0.10, 0.25, 0.50, 0.75, 0.90), function(Tau){
tau <<- Tau;
gamlss(stackloss ~ airflow + watertemp + acidconc, data = ammonia,
family = UGOM(mu.link = "logit", sigma.link = "log"))
})
sapply(fittaus, coef)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.