lg0.4.1 package

Locally Gaussian Distributions: Estimation and Methods

accept_reject

Generate sample from a conditional density estimate

bw_select

Bandwidth selection for local Gaussian correlation.

bw_select_cv_bivariate

Cross-validation for bivariate distributions

bw_select_cv_trivariate

Cross-validation for trivariate distributions

bw_select_cv_univariate

Cross-validation for univariate distributions

bw_select_plugin_multivariate

Plugin bandwidth selection for multivariate data

bw_select_plugin_univariate

Plugin bandwidth selection for univariate data

bw_simple

Create simple bandwidth object

check_bw_bivariate

Check bandwidth vector

check_bw_method

Check bw method

check_bw_trivariate

Check bandwidth vector

check_data

Check the data and grid

check_dmvnorm_arguments

Check the arguments for the dmvnorm_wrapper function

check_est_method

Check estimation method

check_lg

Check that an object has class "lg"

ci_test

Test for conditional independence

ci_test_statistic

Calculate the value of the test statistic for the conditional independ...

clg

The locally Gaussian conditional density estimator

cont_test

Test for financial contagion

corplot

Plot local correlation maps

dlg

The locally Gaussian density estimator (LGDE)

dlg_bivariate

Bivariate density estimation

dlg_marginal

Marginal density estimation

dlg_marginal_wrapper

Marginal estimates for multivariate data

dlg_trivariate

Trivariate density estimation

dmvnorm_wrapper

Wrapper for dmvnorm

dmvnorm_wrapper_single

Wrapper for dmvnorm - single point

gradient

Auxiliary function for calculating the asymptotic standard deviations ...

ind_test

Independence tests

ind_teststat

Function that calculates the test statistic in the independence tests.

interpolate_conditional_density

Interpolate a univariate conditional density function

lg

lg: A package for calculating the local Gaussian correlation in mult...

lg_main

Create an lg object

local_conditional_covariance

Calculate the local conditional covariance between two variables

make_C

Auxiliary function for calculating the asymptotic standard deviations ...

mvnorm_eval

Evaluate the multivariate normal

partial_cor

Calculate the local Gaussian partial correlation

replicate_under_ci

Bootstrap replication under the null hypothesis

trans_normal

Transform the marginals of a multivariate data set to standard normali...

u

Auxiliary function for calculating the local score function u

An implementation of locally Gaussian distributions. It provides methods for implementing locally Gaussian multivariate density estimation, conditional density estimation, various independence tests for iid and time series data, a test for conditional independence and a test for financial contagion.

  • Maintainer: Håkon Otneim
  • License: GPL-3
  • Last published: 2019-12-05