bayespecon.diagnostics.bayesian_lmtests.BayesianLMTestResult¶
-
class bayespecon.diagnostics.bayesian_lmtests.BayesianLMTestResult(lm_samples, mean, median, credible_interval, bayes_pvalue, test_type, df=
1, details=None)[source]¶ Container for Bayesian LM test results.
- bayes_pvalue[source]¶
P-value computed at the posterior mean of the LM statistic,
1 - chi2.cdf(mean, df). Under H₀ the LM statistic follows a \(\chi^2\) distribution ([Doğan et al., 2021], Proposition 1).
- df[source]¶
Degrees of freedom for the reference \(\chi^2\) distribution. Default is 1 for single-parameter tests.
-
__init__(lm_samples, mean, median, credible_interval, bayes_pvalue, test_type, df=
1, details=None)[source]¶
Methods
__init__(lm_samples, mean, median, ...[, ...])to_dict()Convert the test result to a dictionary.
Convert the test result to a pandas Series.
Attributes