Learn R Programming

Copy Link

Version

Install

install.packages('prevtoinc')

Monthly Downloads

129

Version

0.12.0

License

MIT + file LICENSE

Maintainer

Niklas Willrich

Last Published

June 18th, 2019

Functions in prevtoinc (0.12.0)

create_dist_vec

Create vector of probabilities for a finite positive discrete distribution
calculate_I

Function to calculate different estimators for I from PPS data.
A_to_X_dist

function to transform the distribution of stays to a fixed point to the distribution of the staying times
X_to_A_dist

Transform a distribution of times of stay to a distribution of staying-time up to observation point under assumption of steady state.
calculate_CI_I_pp

Calculate confidence intervals for Grenander estimator of Ipp based on asymptotics
create_patient_history_add

Function to simulate a single hospital bed trajectory
calculate_I_mixed

Function to calculate incidence from PPS data using a mix of two estimators
calculate_I_rhame

Function to calculate incidence from PPS data using a Rhame-Sudderth like approach with estimates for x.loi and x.los supplied.
CI_np_bs

Function to calculate confidence intervals I.pp for gren estimator with bootstrap method based on Grenander estimator
simulate_incidence_stats

Calculate theoretical values like x.los, x.loi and other characteristics of the patient population
calculate_I_smooth

Estimate the incidence based on PPS data using monotone estimators for the distribution of A.
simulate_pps_data

Function to simulate PPS data
simulate_pps_fast

Faster method to generate data for PPS with only length of nosocomial infections as output
simulate_incidence_stats_fast

Function to calculate theoretical value for x.loi and I
length_biased_dist

Calculate length-biased distribution from discrete length-unbiased distribution starting at 1
geom_dist_fct

Probability mass function for a geometric distribution shifted by one and resulting expected value 8
generate_I_fast

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

Calculate empirical probability mass function for a discrete positive distribution starting at 1
monotone_smoother

Calculate a monotone probability mass function estimate
length_unbiased_mean

Calculate mean of length-unbiased distribution from discrete length-biased distribution starting at 1
pois_dist_fct

Probability mass function for a Poisson distribution shifted by one and resulting expected value 8
prevtoinc

prevtoinc: