Skip to content

Commit

Permalink
update PrintValidationResults to print validation results for compare…
Browse files Browse the repository at this point in the history
…EandLCIResult function call using L matrix (not L_d)
  • Loading branch information
jvendries committed Feb 16, 2024
1 parent 1479582 commit 7a5ee53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/ValidateModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ printValidationResults <- function(model) {
modelval <- compareEandLCIResult(model, tolerance = 0.01)
print(paste("Number of flow totals by commodity passing:",modelval$N_Pass))
print(paste("Number of flow totals by commodity failing:",modelval$N_Fail))
print(paste("Sectors with flow totals failing:", paste(unique(modelval$Failure$variable), collapse = ", ")))

print("Validate that flow totals by commodity (E_c) can be recalculated (within 1%) using the model satellite matrix (B), market shares matrix (V_n), total domestic requirements matrix (L_d), and demand vector (y) for US production")
dom_val <- compareEandLCIResult(model, use_domestic=TRUE, tolerance = 0.01)
Expand Down

0 comments on commit 7a5ee53

Please sign in to comment.