Learn R Programming

pqrBayes (version 1.1.2)

coverage: 95% empirical coverage probability for a pqrBayes object

Description

Calculate 95% empirical coverage probabilities for regression coefficients under linear, group LASSO and VC models, respectively.

Usage

coverage(object,coefficient,u.grid=NULL,model="linear")

Value

c

Arguments

object

the pqrBayes object.

coefficient

the vector of true regression coefficients under a linear model or the matrix of true varying coefficients evaluated on the grid points under a varying coefficient model.

u.grid

the vector of grid points under a varying coefficient model. When assessing empirical coverage probabilities under a linear model or group LASSO, u.grid = NULL.

model

the model to be fitted. Users can also choose "linear" for a linear model, "VC" for a varying coefficient model and "group" for group LASSO.

See Also

pqrBayes

Examples

Run this code
## The quantile regression model
data(data)
data = data$data_linear
g=data$g
y=data$y
e=data$e
coeff = data$coeff
fit1=pqrBayes(g,y,u=NULL,e,d=NULL,quant=0.5,spline=NULL,model="linear")
coverage=coverage(fit1,coeff,model="linear")

Run the code above in your browser using DataLab