Skip to content

Commit

Permalink
debug example
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwang15 committed Jul 17, 2024
1 parent cec92cd commit b0985f8
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions R/specify.R
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,9 @@ specify_identification_bsvarSIGN = R6::R6Class(
missing_all = FALSE
}
if (missing(sign_relation)) {
sign_relation = matrix(rep(NA, N^2), ncol = N, nrow = N)
if (missing_all) {
sign_relation = diag(N)
} else {
sign_relation = matrix(rep(NA, N^2), ncol = N, nrow = N)
diag(sign_relation) = 1
}
}

Expand Down Expand Up @@ -570,10 +569,9 @@ specify_identification_bsvarSIGN = R6::R6Class(
missing_all = FALSE
}
if (missing(sign_relation)) {
sign_relation = matrix(rep(NA, N^2), ncol = N, nrow = N)
if (missing_all) {
sign_relation = diag(N)
} else {
sign_relation = matrix(rep(NA, N^2), ncol = N, nrow = N)
diag(sign_relation) = 1
}
}

Expand Down Expand Up @@ -695,10 +693,9 @@ specify_bsvarSIGN = R6::R6Class(
missing_all = FALSE
}
if (missing(sign_relation)) {
sign_relation = matrix(rep(NA, N^2), ncol = N, nrow = N)
if (missing_all) {
sign_relation = diag(N)
} else {
sign_relation = matrix(rep(NA, N^2), ncol = N, nrow = N)
diag(sign_relation) = 1
}
}

Expand Down

0 comments on commit b0985f8

Please sign in to comment.