Learn R Programming

esreg (version 0.3.1)

esr_rho_lp: Joint (VaR, ES) loss for a linear predictor

Description

Returns the loss for the parameter vector b

Usage

esr_rho_lp(b, y, x, alpha, g1 = 2L, g2 = 1L, delta = 0)

Arguments

b

Parameter vector

y

Vector of dependent data

x

Matrix of covariates. Note: intercept needs to be added manually

alpha

Probability level

g1

1, 2 (see G1_fun)

g2

1, 2, 3, 4, 5 (see G2_curly_fun, G2_fun)

delta

Smooth approximation of the indicator function (0 is the indicator function)