Learn R Programming

⚠️There's a newer version (0.4.12) of this package.Take me there.

popEpi (version 0.3.0)

Functions for Epidemiological Analysis using Population Data

Description

Enables computation of various epidemiological statistics where the use of population data such as population counts and hazards is required. Relatively high computation speed achieved by using data.table.

Copy Link

Version

Install

install.packages('popEpi')

Monthly Downloads

3,282

Version

0.3.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Joonas Miettinen

Last Published

March 31st, 2016

Functions in popEpi (0.3.0)

sire

sire - a simulated cohort of Finnish female rectal cancer patients
as.Date.yrs

Coerce Fractional Year Values to Date Values
plot.survmean

Graphically Inspect Curves Used in Mean Survival Computation
na2zero

Convert NA's to zero in data.table
print.aggre

Print an aggre Object
as.aggre

Coercion to Class aggre
stdpop101

World standard population by 1 year agegroups from 1 to 101. Sums to 100 000.
rpcurve

Marginal piecewise parametric relative survival curve
lower_bound

Return lower_bound value from char string (20,30]
get.yrs

Convert date objects to fractional years
summary.aggre

Summaryize an aggre Object
longDF2ratetable

Experimental: Coerce a long-format data.frame to a ratetable object
all_names_present

Check if all names are present in given data
survtab_ag

Estimate Survival Time Functions
makeWeightsDT

Make a data.table of Tabulated, Aggregated Values and Weights
cut_bound

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

Plot method for sir-object
robust_values

Convert values to numeric robustly
lexpand

Split case-level observations
adjust

Adjust Estimates by Categorical Variables
direct_standardization

Direct Adjusting in popEpi Using Weights
print.sir

Print method for sir objects
shift.var

Shift a variable to create lag or lead values
aggre

Aggregation of split Lexis data
lines.survtab

lines method for survtab objects
RPL

Relative Poisson family object
as.data.frame.ratetable

Coerce a ratetable Object to Class data.frame
print.survtab

Print a survtab Object
relpois_ag

Excess hazard Poisson model
ICSS

Age standardisation weights from the ICSS scheme.
flexible_argument

Flexible Variable Usage in popEpi Functions
lines.survmean

Graphically Inspect Curves Used in Mean Survival Computation
lines.sirspline

lines method for sirspline-object
setcolsnull

Delete data.table columns if there
is.Date

Test if object is a Date object
popEpi

popEpi: Functions for large-scale epidemiological analysis
is_leap_year

Detect leap years
ltable

Tabulate Counts and Other Functions by Multiple Variables into a Long-Format Table
splitLexisDT

Split case-level observations
survmean

Compute Mean Survival Times Using Extrapolation
prepExpo

Prepare Exposure Data for Aggregation
cast_simple

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

Set 'aggre' attributes to an object by modifying in place
plot.sirspline

plot method for sirspline-object
stdpop18

Standard populations from 2000: world, europe and nordic.
pophaz

Expected / Population Hazard Data Sets Usage in popEpi
print.sirspline

Print method for sirspline objects
setclass

Set the class of an object (convencience function for setattr(obj, "class", CLASS)); can add instead of replace
splitMulti

Split case-level observations
rate

Direct-Standardised Incidence/Mortality Rates
as.data.table.ratetable

Coerce a ratetable Object to Class data.table
popmort

Population mortality rates in Finland 1951 - 2013 in 101 age groups and by gender
plot.survtab

plot method for survtab objects
sir

Calculate SIR or SMR
poisson.ci

Get rate and exact Poisson confidence intervals
fac2num

Convert factor variable to numeric
relpois

Excess hazard Poisson model
summary.survtab

Summarize a survtab Object
sirspline

Estimate splines for SIR or SMR
sibr

sibr - a simulated cohort of Finnish female breast cancer patients
try2int

Attempt coercion to integer