Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mlysy/localcop

Local Likelihood Inference for Conditional Copulas
https://github.com/mlysy/localcop

Last synced: 3 months ago
JSON representation

Local Likelihood Inference for Conditional Copulas

Awesome Lists containing this project

README

        

# LocalCop: Local Likelihood Inference for Conditional Copula Models

*Elif Fidan Acar, Martin Lysy*

[![R-CMD-check](https://github.com/mlysy/LocalCop/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mlysy/LocalCop/actions/workflows/R-CMD-check.yaml)

------------------------------------------------------------------------

### Description

Implements a local likelihood estimator for the dependence parameter in
bivariate conditional copula models. Copula family and local likelihood
bandwidth parameters are selected by leave-one-out cross-validation. The
models are implemented in [**TMB**](https://github.com/kaskr/adcomp),
meaning that the local score function is efficiently calculated via
automated differentiation (AD), such that quasi-Newton algorithms may be
used for parameter estimation.

### Installation

To install the CRAN version (0.0.1):

``` r
install.packages("LocalCop", INSTALL_opts = "--install-tests")
```

To install the latest development version: first install the
[**devtools**](https://CRAN.R-project.org/package=devtools) package,
then:

``` r
devtools::install_github("mlysy/LocalCop", INSTALL_opts = "--install-tests")
```

### Usage

Please see package vignette: `vignette("LocalCop-vignette")`.

### Unit Tests

To verify that the package has been installed correctly, you can run its
unit tests. First install the
[**testthat**](https://CRAN.R-project.org/package=testthat) package,
then:

``` r
testthat::test_package("LocalCop", reporter = "progress")
```

### Contributing

Contributions in the form of bug reports, fixes, extensions,
improvements, etc. are most welcome. Please file an
[issue](https://github.com/mlysy/LocalCop/issues) before submitting a
PR.