Skip to content

Commit

Permalink
Merge pull request #22 from dd-harp/dev
Browse files Browse the repository at this point in the history
xde_scaling_eir
  • Loading branch information
smitdave authored Oct 14, 2024
2 parents a2a9fcf + 802feb7 commit 7096f1d
Show file tree
Hide file tree
Showing 41 changed files with 2,246 additions and 1,941 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ docs/*.html
/docs
docs/reference/ar_compare.html
*.html
/docs/articles
/docs
5 changes: 2 additions & 3 deletions R/scaling.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ xde_scaling_eir = function(model, N=25){
for(i in 1:N){
model$EIRpar$eir <- aEIR[i]/365
model <- ramp.xds::xds_solve_cohort(model, A=10, da=1)
XH <- model$outputs$orbits$XH[[1]]
terms <- model$outputs$orbits$terms[[1]]
XH <- get_XH(model, 1)
pr_t = tail(XH$true_pr, 365); pr[i] = mean(pr_t)
ni_t = tail(XH$ni, 365); ni[i]= mean(ni_t)
eir_t = tail(terms$EIR, 365); eir[i] = mean(eir_t)
eir_t = tail(XH$eir, 365); eir[i] = mean(eir_t)
scaling[[i]] = list(aeir = eir_t*365, eir = eir_t, pr = pr_t, ni = ni_t)
}

Expand Down
5 changes: 5 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ reference:
- xde_scaling_Z
- xde_scaling_eir
- xde_scaling_lambda
- title: Demography
desc: |
No methods to set subclass
contents:
- UnevenAgingMatrix
123 changes: 71 additions & 52 deletions docs/articles/Analysis.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7096f1d

Please sign in to comment.