prevtoinc0.12.0 package

Prevalence to Incidence Calculations for Point-Prevalence Studies in a Nosocomial Setting

A_to_X_dist

function to transform the distribution of stays to a fixed point to th...

calculate_CI_I_pp

Calculate confidence intervals for Grenander estimator of Ipp based on...

calculate_I

Function to calculate different estimators for I from PPS data.

calculate_I_mixed

Function to calculate incidence from PPS data using a mix of two estim...

calculate_I_rhame

Function to calculate incidence from PPS data using a Rhame-Sudderth l...

calculate_I_smooth

Estimate the incidence based on PPS data using monotone estimators for...

CI_np_bs

Function to calculate confidence intervals I.pp for gren estimator wit...

create_dist_vec

Create vector of probabilities for a finite positive discrete distribu...

create_patient_history_add

Function to simulate a single hospital bed trajectory

epmf

Calculate empirical probability mass function for a discrete positive ...

generate_I_fast

Function to simulate PPS and data and calculate a number of estimators

geom_dist_fct

Probability mass function for a geometric distribution shifted by one ...

length_biased_dist

Calculate length-biased distribution from discrete length-unbiased dis...

length_unbiased_mean

Calculate mean of length-unbiased distribution from discrete length-bi...

monotone_smoother

Calculate a monotone probability mass function estimate

pois_dist_fct

Probability mass function for a Poisson distribution shifted by one an...

prevtoinc

prevtoinc:

simulate_incidence_stats

Calculate theoretical values like x.los, x.loi and other characteristi...

simulate_incidence_stats_fast

Function to calculate theoretical value for x.loi and I

simulate_pps_data

Function to simulate PPS data

simulate_pps_fast

Faster method to generate data for PPS with only length of nosocomial ...

X_to_A_dist

Transform a distribution of times of stay to a distribution of staying...

Functions to simulate point prevalence studies (PPSs) of healthcare-associated infections (HAIs) and to convert prevalence to incidence in steady state setups. Companion package to the preprint Willrich et al., From prevalence to incidence - a new approach in the hospital setting; <doi:10.1101/554725> , where methods are explained in detail.

  • Maintainer: Niklas Willrich
  • License: MIT + file LICENSE
  • Last published: 2019-06-18