-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramp.xds changed the way that xds_solve_cohort stores outputs; scaling.R was updated to match. The Scaling vignette is shorter and more focused. The longer Scaling has been moved to Robust Analytics. ramp.xds now includes the `matrix` case for dHdt. The function `UnevenAgingMatrix` has been added in anticipation of developing xds_setup_demography and principled stratification.
- Loading branch information
Showing
8 changed files
with
88 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ docs/*.html | |
*.html | ||
/docs | ||
docs/reference/ar_compare.html | ||
*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#' @title Create a cohort matrix | ||
#' @description Return a matrix `dH` | ||
#' @param deathrates the death rates for | ||
#' @param ageMesh a partition on human age | ||
#' @return the steady states as a named vector | ||
#' @export | ||
UnevenAgingMatrix = function(deathrates, ageMesh){ | ||
N = length(ageMesh) | ||
checkIt(deathrates, N+1) | ||
ageUp = c(1/ageMesh,0) | ||
Aging = diag(-ageUp-deathrates) | ||
Aging[cbind(1+1:N, 1:N)] = 1/ageMesh | ||
return(Aging) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.