AEQcalc | R Documentation |
Compute the AEQs for each age group. Original VB code:
AEQcalc(input)
TAB: what are AEQs? Adult Equivalents! Sub AEQcalc() Dim TmpA As Double 'TAB: added line Dim TmpS As Double 'TAB: added line Dim Age As Integer 'TAB: added line TmpA = 0 TmpS = 0 For Age = MaxAge AEQ(Age) = MatRate(Age) + TmpS * (1 - MatRate(Age)) * TmpA TmpA = AEQ(Age) TmpS = 1 - NatMort(Age) Next Age
End Sub
AEQ (scalar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.