popEpi0.4.12 package

Functions for Epidemiological Analysis using Population Data

fac2num

Convert factor variable to numeric

flexible_argument

Flexible Variable Usage in popEpi Functions

cut_bound

Change output values from cut(..., labels = NULL) output

direct_standardization

Direct Adjusting in popEpi Using Weights

adjust

Adjust Estimates by Categorical Variables

aggre

Aggregation of split Lexis data

relpois_ag

Excess hazard Poisson model

all_names_present

Check if all names are present in given data

array_df_ratetable_utils

arrays, data.frames and ratetables

as.aggre

Coercion to Class aggre

as.Date.yrs

Coerce Fractional Year Values to Date Values

cast_simple

Cast data.table/data.frame from long format to wide format

get.yrs

Convert date objects to fractional years

is.Date

Test if object is a Date object

is_leap_year

Detect leap years

Lexis_fpa

Create a Lexis Object with Follow-up Time, Period, and Age Time Scales

lexpand

Split case-level observations

lines.sirspline

lines method for sirspline-object

lines.survmean

Graphically Inspect Curves Used in Mean Survival Computation

lines.survtab

lines method for survtab objects

lower_bound

Return lower_bound value from char string (20,30]

ltable

Tabulate Counts and Other Functions by Multiple Variables into a Long-...

na2zero

Convert NA's to zero in data.table

plot.rate

plot method for rate object

plot.sir

Plot method for sir-object

try2int

Attempt coercion to integer

plot.sirspline

plot method for sirspline-object

plot.survmean

Graphically Inspect Curves Used in Mean Survival Computation

plot.survtab

plot method for survtab objects

poisson.ci

Get rate and exact Poisson confidence intervals

popEpi-package

popEpi: Functions for large-scale epidemiological analysis

robust_values

Convert values to numeric robustly

pophaz

Expected / Population Hazard Data Sets Usage in popEpi

prepExpo

Prepare Exposure Data for Aggregation

print.aggre

Print an aggre Object

print.rate

Print an rate object

print.survtab

Print a survtab Object

rate

Direct-Standardised Incidence/Mortality Rates

rate_ratio

Confidence intervals for the rate ratios

relpois

Excess hazard Poisson model

rpcurve

Marginal piecewise parametric relative survival curve

RPL

Relative Poisson family object

setaggre

Set aggre attributes to an object by modifying in place

setclass

Set the class of an object (convenience function for `setattr(obj, "cl...

setcolsnull

Delete data.table columns if there

sir

Calculate SIR or SMR

sir_exp

Calculate SMR

sir_ratio

Confidence intervals for the ratio of two SIRs/SMRs

sirspline

Estimate splines for SIR or SMR

splitLexisDT

Split case-level observations

splitMulti

Split case-level observations

summary.aggre

Summarize an aggre Object

summary.survtab

Summarize a survtab Object

Surv

Survival Objects

survmean

Compute Mean Survival Times Using Extrapolation

survtab

Estimate Survival Time Functions

survtab_ag

Estimate Survival Time Functions

Enables computation of epidemiological statistics, including those where counts or mortality rates of the reference population are used. Currently supported: excess hazard models (Dickman, Sloggett, Hills, and Hakulinen (2012) <doi:10.1002/sim.1597>), rates, mean survival times, relative/net survival (in particular the Ederer II (Ederer and Heise (1959)) and Pohar Perme (Pohar Perme, Stare, and Esteve (2012) <doi:10.1111/j.1541-0420.2011.01640.x>) estimators), and standardized incidence and mortality ratios, all of which can be easily adjusted for by covariates such as age. Fast splitting and aggregation of 'Lexis' objects (from package 'Epi') and other computations achieved using 'data.table'.

  • Maintainer: Joonas Miettinen
  • License: MIT + file LICENSE
  • Last published: 2024-05-10