View source: R/building_blocks.R
q_paasche | R Documentation |
Paasche quantity index.
q_paasche(pt, qt, qb)
pt |
A n-vector (or m x n matrix) of prices in current period. |
qt |
A n-vector (or m x n matrix) of quantities in the current period. |
qb |
A n-vector (or m x n matrix) of quantities in the baseline period. |
Quantity index between current an baseline period (number or vector).
Pt <- matrix(1:6, ncol = 2) Qt <- matrix(2:7, ncol = 2) Qb <- Qt*1.2 q_paasche(Pt, Qt, Qb) q_paasche(Pt[1,], Qt[1,], Qb[1,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.