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

coherent bsvars notation #27

Closed
3 tasks done
adamwang15 opened this issue Jul 15, 2024 · 4 comments · Fixed by #29
Closed
3 tasks done

coherent bsvars notation #27

adamwang15 opened this issue Jul 15, 2024 · 4 comments · Fixed by #29
Assignees

Comments

@adamwang15
Copy link
Collaborator

adamwang15 commented Jul 15, 2024

Notations in R should be coherent with bsvars and notations in C++ should be coherent with original papers.

  • transpose Y, X, Ysoc, Ysur, Xsoc, Xsur, V matrices
  • change B in prior to A
  • remove Vp, Vd in prior
@adamwang15 adamwang15 self-assigned this Jul 15, 2024
adamwang15 added a commit that referenced this issue Jul 15, 2024
@adamwang15 adamwang15 linked a pull request Jul 15, 2024 that will close this issue
@adamwang15
Copy link
Collaborator Author

Hey @donotdespair now all the objects have the same dimensions as in bsvars! Including Y (NxT) and X (KxT), so some examples are not passing the checks.

@donotdespair
Copy link
Member

Hey @adamwang15 This is great! Thanks!

Could you prepare here a list of file that you went thorugh and implemented changes. It would greatly help to work on corrections of the rest of the package!

Cheers, T

@adamwang15
Copy link
Collaborator Author

@donotdespair Of course! I have only changed these two R files, the idea is to transpose everything just before feeding them to the cpp functions (and cpp functions are kept the same).

  • estimate.BSVARSIGN.R
  • specify_bsvarSIGN.R

For example, in estimate before calling bsvar_sign_cpp

prior$B             = t(prior$A)
prior$Ysoc          = t(prior$Ysoc)
prior$Xsoc          = t(prior$Xsoc)
prior$Ysur          = t(prior$Ysur)
prior$Xsur          = t(prior$Xsur)
Y                   = t(data_matrices$Y)
X                   = t(data_matrices$X)

@donotdespair donotdespair reopened this Jul 16, 2024
@donotdespair
Copy link
Member

donotdespair commented Jul 16, 2024

  • update forecast for the transposes!

donotdespair added a commit that referenced this issue Jul 16, 2024
+ simple changes to accommodate the transposes #27
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 a pull request may close this issue.

2 participants