interMLE: Binomial Maximum Likelihood Estimator

Description Usage Arguments Details Value References See Also Examples

View source: R/interMLE.R

Description

The inter correlation parameter can be estimated by maximizing the Vasicek-binomial log-likelihood. The default process in the Vasicek model follows a binomial distribution, conditional on the realisation of the systematic factor. Hence, the inter correlation of the systematic factor can be estimated by maximizing the resulting log likelihood.

Usage

1
2
interMLE(d1, n1, d2, n2, rho1, rho2, B = 0, DB=c(0,0), JC = FALSE,
CI, plot=FALSE)

Arguments

d1

a vector, containing the default time series of sector 1.

n1

a vector, containing the number of obligors at the beginning of the period in sector 1.

d2

a vector, containing the default time series of sector 2.

n2

a vector, containing the number of obligors at the beginning of the period in sector 2.

rho1

estimated intra correlation of sector 1.

rho2

estimated intra correlation of sector 2.

B

an integer, indicating how many bootstrap repetitions should be used for the single bootstrap corrected estimate.

DB

a combined vector, indicating how many bootstrap repetitions should be used for the inner (first entry) and outer loop (second entry) to correct the bias using the double bootstrap.

JC

a logical variable, indicating if the jackknife corrected estimate should be calculated.

CI

a number, indicating the desired asymptotic confidence bound of the estimate.

plot

a logical variable, indicating whether a plot of the single bootstrap density should be generated.

Details

This function estimates the inter correlation of the systematic factor. In general, the inter correlation can be estimated for the asset variables or the systematic factors. To ensure the traceability of the estimation, the intra correlation estimates will be used as plug-in estimates. Hence only one parameter (inter correlation) must be estimated. The inter correlation of the systematic factor can be transformed to the correlation of the asset variables as follows:

rho_Asset= rho_Systematic*sqrt(rho_1*rho_2)

The estimated inter correlation of the systematic factors lies between -1 and 1.

If DB is specified, the single bootstrap corrected estimate will be calculated using the bootstrap values of the outer loop (oValues).

Value

The returned value is a list, containing the following components (depending on the selected arguments):

Original

Estimate of the original method

Bootstrap

Bootstrap corrected estimate

Double_Bootstrap

Double bootstrap corrected estimate

Jackknife

Jackknife corrected estimate

CI

Selected two-sided asymptotic bootstrap confidence interval

CI_Boot

Selected two-sided bootstrap confidence interval

bValues

Estimates from the bootstrap resampling

iValues

Estimates from the double bootstrap resampling- inner loop

oValues

Estimates from the double bootstrap resampling- outer loop

References

\insertRef

chang2015doubleAssetCorr

\insertRef

efron1994introductionAssetCorr

\insertRef

gordy2010smallAssetCorr

See Also

interJDP, interCopula, interCMM, interCov

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
d1=defaultTimeseries(1000,0.1,10,0.01)
d2=defaultTimeseries(1000,0.2,10,0.01)
n1=n2=rep(1000,10)

InterCorr=interMLE(d1,n1,d2,n2,0.1,0.2, CI=0.95)

InterCorr=interMLE(d1,n1,d2,n2,0.1,0.2, JC=TRUE)

InterCorr=interMLE(d1,n1,d2,n2,0.1,0.2, B=1000, CI_Boot=0.95)

InterCorr=interMLE(d1,n1,d2,n2,0.1,0.2, DB=c(10,50))

AssetCorr documentation built on May 2, 2019, 1:37 p.m.