Skip to content
cranPublic

About

❗ This is a read-only mirror of the CRAN R package repository. esreg — Joint Quantile and Expected Shortfall Regression. Homepage: https://github.com/BayerSe/esreg Report bugs for this package: https://github.com/BayerSe/esreg/issues

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esreg

The goal of esreg is to simultaneously model the quantile and the Expected Shortfall of a response variable given a set of covariates.

Installation

CRAN (stable release)

You can install the released version from CRAN:

install.packages("esreg")

GitHub (development)

The latest version of the package is under development at GitHub. You can install the development version using these commands:

install.packages("devtools")
devtools::install_github("BayerSe/esreg")

If you are using Windows, you need to install the Rtools for compilation of the codes.

Examples

# Load the esreg package
library(esreg)

# Simulate data from DGP-(2) in the paper
set.seed(1)

x <- rchisq(1000, df = 1)
y <- -x + (1 + 0.5 * x) * rnorm(1000)

# Estimate the model and the covariance
fit <- esreg(y ~ x, alpha = 0.025)
cov <- vcov(object = fit, sparsity = "nid", sigma_est = "scl_sp")

References

A Joint Quantile and Expected Shortfall Regression Framework

About

❗ This is a read-only mirror of the CRAN R package repository. esreg — Joint Quantile and Expected Shortfall Regression. Homepage: https://github.com/BayerSe/esreg Report bugs for this package: https://github.com/BayerSe/esreg/issues

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages