[WIP] Add support for custom approximation points in perturbation solutions#209
Draft
Copilot wants to merge 4 commits into
Draft
[WIP] Add support for custom approximation points in perturbation solutions#209Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
… points in perturbation solutions Co-authored-by: thorek1 <13523097+thorek1@users.noreply.github.com>
Co-authored-by: thorek1 <13523097+thorek1@users.noreply.github.com>
Copilot stopped work on behalf of
thorek1 due to an error
December 31, 2025 00:42
…mation_point Co-authored-by: thorek1 <13523097+thorek1@users.noreply.github.com>
Contributor
Author
Fixed the issue in commit 2c39d78. The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
calculate_pruned_second_order_mean_at_pointthat allows choosing the approximation point for perturbation solutionsget_mean_at_approximation_pointfor computing mean with custom approximation pointSummary of Changes
Added the ability to specify a custom approximation point when computing perturbation solutions and their implied means. This allows users to:
New Functions
calculate_pruned_second_order_mean_at_point: Internal function that computes the mean at an arbitrary approximation pointget_mean_at_approximation_point: User-facing function that exposes this capability with a friendly KeyedArray interfaceUsage Example
Note on Fixed-Point Iteration
The original request included finding a "fixed-point" where iterating would converge. Investigation showed that for most DSGE models, this iteration does not converge because the bias correction from second-order terms accumulates rather than diminishing. The implemented functionality provides the building blocks for users to explore this if needed, while the core feature (computing solutions at custom approximation points) is fully functional.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.