Learn R Programming

RationalExp (version 0.2.2)

Rationalizing Rational Expectations. Tests and Deviations

Description

We implement a test of the rational expectations hypothesis based on the marginal distributions of realizations and subjective beliefs from D'Haultfoeuille, Gaillac, and Maurel (2018) . This test can be used in cases where realizations and subjective beliefs are observed in two different datasets that cannot be matched, or when they are observed in the same dataset. The package also computes the estimator of the minimal deviations from rational expectations than can be rationalized by the data.

Copy Link

Version

Install

install.packages('RationalExp')

Monthly Downloads

150

Version

0.2.2

License

GPL-3

Maintainer

Christophe Gaillac

Last Published

February 8th, 2019

Functions in RationalExp (0.2.2)

inverse

Inverse the function f
test

Implementation of the RE test with possible survey weights (direct and with parallel computing)
S1

Core part of the Statistic T
T_stat

Computation of the test statistic
boot_stat

Compute the bootstrap test statistic for parallel implementation
c_cube

Instrumental functions computations
test_base

The test statistic for the RE test with survey weights
which.min2

Find the min of a list starting from the end
c_fun

Compute the difference between mean of subvectors of two vectors
estimDev

Estimation of the minimal deviations from rational expectations with unconstrained information set g*