Skip to contents

Formula: ASR = sum_i w_i r_i / sum_i w_i; var(ASR) = sum_i w_i^2 r_i / n_i / (sum_i w_i)^2

Usage

Agestd(rates, standard_pop, person_time = NULL)

Arguments

rates

See Usage.

standard_pop

See Usage.

person_time

See Usage.

Value

List with asr, variance, se, ci_lower, ci_upper, weights, k.

References

Boyle and Parkin (1991), Statistical methods for registries, in Jensen et al (eds), Cancer Registration: Principles and Methods, IARC Scientific Publications 95. The direct standardisation estimator and its Poisson variance are the standard published forms.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
Agestd(V, V)
#> $asr
#> [1] 5.666667
#> 
#> $variance
#> [1] NA
#> 
#> $se
#> [1] NA
#> 
#> $ci_lower
#> [1] NA
#> 
#> $ci_upper
#> [1] NA
#> 
#> $weights
#> [1] 0.02777778 0.05555556 0.08333333 0.11111111 0.13888889 0.16666667 0.19444444
#> [8] 0.22222222
#> 
#> $k
#> [1] 8
#> 
#> $method
#> [1] "Directly age-standardised rate"
#> 
#> attr(,"class")
#> [1] "morie_rich_result" "list"