adjust_direct: Calculate crude and directly adjusted rates

View source: R/utilities.R

adjust_directR Documentation

Calculate crude and directly adjusted rates

Description

Calculate crude and directly adjusted rates

Usage

adjust_direct(count, pop, stdpop, per = 100000, conf.level = 0.95)

Arguments

count

Numeric vector of indeterminate length. The # of events of interest (e.g., deaths, births, etc.)

pop

Numeric vector of indeterminate length. The population denominator for the count.

stdpop

Numeric vector of indeterminate length. The reference standard population corresponding to the population.

per

Integer vector of length 1. A multiplier for all rates and CI, e.g., when per = 1000, the rates are per 1000 people

conf.level

A numeric vector of length 1. The confidence interval used in the calculations.

Value

a labeled numeric vector of the count, rate, and adjusted rate with the CI

Examples


 adjust_direct(count = c(11, 9), pop = c(500, 500), stdpop = c(640, 720),
 per = 100, conf.level = 0.95)[]


PHSKC-APDE/rads documentation built on April 14, 2025, 10:47 a.m.