SignRestrictedSVARResult.n_accepted#
- property SignRestrictedSVARResult.n_accepted: int[source]#
Accepted rotations in the set.
Equal to
requestedunless the attempt budget ran out first.Example
>>> import numpy as np >>> from cultivars.multivariate.reduced_form.vector_autoregression import VAR >>> rng = np.random.default_rng(0) >>> res = VAR(rng.standard_normal((121, 2)), order=1, names=("gdp", "infl")).fit() >>> signs = {"d": {"gdp": "+", "infl": "+"}} >>> full = SignRestrictedSVAR(res, signs, draws=50, seed=0).identify() >>> cut = SignRestrictedSVAR(res, signs, draws=50, max_attempts=20, seed=0).identify() >>> full.n_accepted, cut.n_accepted < 50, cut.attempts (50, True, 20)