Learn R Programming

RandomCoefficients (version 0.0.2)

Adaptive Estimation in the Linear Random Coefficients Models

Description

We implement adaptive estimation of the joint density linear model where the coefficients - intercept and slopes - are random and independent from regressors which support is a proper subset. The estimator proposed in Gaillac and Gautier (2019) is based on Prolate Spheroidal Wave Functions which are computed efficiently in 'RandomCoefficients'. This package also provides a parallel implementation of the estimator.

Copy Link

Version

Install

install.packages('RandomCoefficients')

Monthly Downloads

11

Version

0.0.2

License

GPL-3

Maintainer

Christophe Gaillac

Last Published

June 7th, 2019

Functions in RandomCoefficients (0.0.2)

rc_estim

Adaptive estimation of the joint density of random coefficients model in a linear random coefficient model
MU_fourier

Auxiliary function that computes the singular values of the SVD of the operator F_c in Gaillac and Gautier 2018 using the Fast Fourier transform for the integration.
repmat

Auxiliary function that extends the matrix X
insertEO

Auxiliary function that put together even and odd functions of the SVD in an only one output list.
PSI_mu

Ausiliary function that evaluates the SVD of F_c on a pre-specified grid divided by the singular values to the square.
legendrequad

Auxiliary function that compute the Legendre quadrature of order K
myDiag

Auxiliary function to form matrices equal to x everywhere except from the upper/lower k diagonal, which values are vec
get_u

Computation of the coefficients of the PSWF on the Legendre polynomials basis of L^2(-1,1)
MU

Auxiliary function that computes the singular values of the SVD of the operator F_c in Gaillac and Gautier 2018.
boot_stat

Auxiliary function for parallel implementation of rc_estim
get_psi_mu

Auxiliary function for the computation of the eigenvalues of the SVD of F_c
PSI_mu_fourier

Auxiliary funciton for the evaluation of the SVD of F_c on a pre-specified grid divided by the singular values to the square.