Skip to content

Commit

Permalink
Run check with orderly #27
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed May 3, 2023
1 parent 297beda commit 5fca341
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions make/_make.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ run_commit_push("docs_bayescomp-poster")
run_commit_push("docs_bioinference-poster")
run_commit_push("plot-tikz_algorithm-flowchart")
run_commit_push("plot-tikz_simplified-naomi")

#' Checks
run_commit_push("check_sd-estimation")
3 changes: 3 additions & 0 deletions src/check_sd-estimation/orderly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ artefacts:
- mode-locations.pdf
- reduced-hessian-draws.pdf

resources:
- naomi_simple.cpp

packages:
- dplyr
- forcats
Expand Down
1 change: 1 addition & 0 deletions src/check_sd-estimation/script.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ aghq_cov <- solve(aghq_hess)
tmb_mode <- tmb$fit$par.full
j2 <- which(names(tmb_mode) == par)[i]

TMB::compile("naomi_simple.cpp")
dyn.load(TMB::dynlib("naomi_simple"))
tmb_hess <- naomi:::sdreport_joint_precision(tmb$fit$obj, tmb$fit$par.fixed)
dim(tmb_hess) #' 491 x 491
Expand Down

0 comments on commit 5fca341

Please sign in to comment.