View source: R/progression-matrix.R
| progression_matrix | R Documentation |
Assembles the projection matrix used to advance enrollment. Progression
ratios are placed on the sub-diagonal (each non-entry grade is fed by the
grade below); the entry-grade row is left at zero because entry enrollment is
supplied exogenously to project_enrollment(). The ratios must form a single
low-to-high chain: each grade_to must be the grade immediately above its
grade_from in the resolved order.
progression_matrix(ratios, grade_order = NULL)
ratios |
A data frame or data-frame subclass with columns |
grade_order |
Optional character vector giving the low-to-high grade
order. If omitted, the order is reconstructed from the transition chain.
Every non-entry grade in |
A square numeric matrix with grade dimnames.
ratios <- data.frame(
grade_from = c("K", "1"),
grade_to = c("1", "2"),
ratio = c(0.92, 0.97)
)
progression_matrix(ratios)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.