Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous contributions from Omar #47

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Miscellaneous contributions from Omar #47

wants to merge 10 commits into from

Conversation

Omar-Elrefaei
Copy link
Member

this is just a draft PR to keep track any issues or WIP tasks that need to be done before @Omar-Elrefaei 's work is merged

display_autocorrelation2(simulation_results, endogenous_names, m, options)
end

function long_second_order_simulation(context; periods = 100_000, burning = 100)
Copy link
Member Author

@Omar-Elrefaei Omar-Elrefaei Aug 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long_second_order_simulation needs a better name but I didn't know what to name it given the context

data = Matrix{Any}(undef, original_endo_nbr + 1, 4)
data[1, :] = ["VARIABLE", "MEAN", "STD. DEV.", "VARIANCE"]
data[2:end, 1] = endogenous_names[1:original_endo_nbr]
data[2:end, 2] .= map(mean, eachcol(sim_results))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mean calculated in display_mean_sd_variance2 differs significantly that the theoretical moments calculated in display_mean_sd_variance for first order solution.

Notice: the simulated 2nd order mean changes if the shock in the mod file is modified.
Michel argued that this should not be happening.

except of function names, most of this code is probably generalization
to k-order solutions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants