RationalExp
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) <doi:10.3386/w25274>. 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.
Downloads
223
Last 30 days
20088th
544
Last 90 days
2.2K
Last year
Trend: +66.4% (30d vs prior 30d)
10
Last 30 days
26
Last 90 days
104
Last year
Trend: -33.3% (30d vs prior 30d)
2
Last 7 days
14
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | NOTE |
| r-devel-linux-x86_64-debian-gcc | NOTE |
| r-devel-linux-x86_64-fedora-clang | NOTE |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| r-devel-windows-x86_64 | NOTE |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | NOTE |
| r-patched-linux-x86_64 | NOTE |
| r-release-linux-x86_64 | NOTE |
| r-release-macos-arm64 | NOTE |
| r-release-macos-x86_64 | NOTE |
| r-release-windows-x86_64 | NOTE |
Check details (13 non-OK)
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Check History
NOTE 0 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 27, 2026
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
WARNING 0 OK · 12 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 14, 2026
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
NOTE 0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^
Rd files
checkRd: (-1) S1.Rd:10: Lost braces; missing escapes or markup?
10 | \item{m_bar}{the sample vector of moments for a specified vector $(h_{a,r},y)$}
| ^
checkRd: (-1) S1.Rd:16: Lost braces; missing escapes or markup?
16 | \item{N_k}{index of the $ h_{a,r}$ function considered}
| ^