## The sparse quantile regression model
data(data)
data = data$data_linear
g=data$g
y=data$y
e=data$e
fit1=pqrBayes(g,y,e,d = NULL,quant=0.5,model="linear")
select=pqrBayes.select(obj = fit1,prior = "SS",model="linear")
## The quantile varying coefficient model
data(data)
data = data$data_varying
g=data$g
y=data$y
e=data$e
fit1=pqrBayes(g,y,e,d = NULL,quant=0.5,model="VC")
select=pqrBayes.select(obj = fit1,prior = "SS",model="VC")
select
# \donttest{
## Non-sparse example with VC model
fit2 <- pqrBayes(
g = g, y = y, e = e, d = NULL,
quant = 0.5,
prior= "Laplace",
model = "VC"
)
select <- pqrBayes.select(obj = fit2, prior = "SS", model = "VC")
select
# }
Run the code above in your browser using DataLab