Learn R Programming

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

rprev

rprev estimates disease prevalence at a specified index date from registry data. To improve the estimate accuracy, Monte Carlo simulation techniques are used to simulate incident cases in years for which incidence data is unavailable. Disease survival is modelled with parametric Weibull regression. See the user_guide vignette for more details about the implementation, and the original publication for details of the algorithm, available at http://www.ncbi.nlm.nih.gov/pubmed/24656754.

Installation

To install from CRAN, simply use install.packages('rprev'). The code is currently not available elsewhere.

Copy Link

Version

Install

install.packages('rprev')

Monthly Downloads

250

Version

0.2.4

License

GPL-2

Maintainer

Stuart Lacy

Last Published

September 22nd, 2017

Functions in rprev (0.2.4)

prevsim

Simulated patient dataset.
yearly_incidence

Disease incidence.
determine_yearly_endpoints

Determine annual event delimiters.
functional_form_age

View the suitability of a linear effect of age on hazard.
UKmortality

General population survival data.
determine_registry_years

incidence

Summarise disease incidence.
prevalence_simulated

Estimate prevalence using Monte Carlo simulation.
incidence_age_distribution

Plot the age distribution of incident cases.
test_prevalence_fit

Test simulated prevalence fit.
test_incidence_fit

Test homogeneous Poisson assumption of disease incidence.
mean_incidence_rate

Mean disease incidence.
summary.survfit.prev

Obtain N-year survival probability estimates.
prevalence_counted

Count prevalence from registry data.
plot.incidence

Visualise disease incidence.
survfit.prevalence

Form bootstrapped survival curves.
prevalence

Estimate point prevalence at an index date.
plot.survfit.prev

Plot bootstrapped survival curves.
raw_incidence

population_survival_rate

Transform yearly mortality rates to daily.
rprev

rprev: Estimate disease point prevalence using a combination of registry data and Monte Carlo simulations.