Learn R Programming

rhosp (version 1.10)

Side Effect Risks in Hospital : Simulation and Estimation

Description

Evaluating risk (that a patient arises a side effect) during hospitalization is the main purpose of this package. Several methods (Parametric, non parametric and De Vielder estimation) to estimate the risk constant (R) are implemented in this package. There are also functions to simulate the different models of this issue in order to quantify the previous estimators. It is necessary to read at least the first six pages of the report to understand the topic.

Copy Link

Version

Install

install.packages('rhosp')

Monthly Downloads

200

Version

1.10

License

GPL (>= 2)

Last Published

August 7th, 2018

Functions in rhosp (1.10)

mainSimul2

simulate many times the second model
estimNonParam

compute the parametric estimation
mainSimul

simulate many times the first model and calculate the risk constant
histo

plot the histogram of the variable T
estimParam

compute the parametric estimation
makeSample2

create a sample of the second model stored in a file
simul

simulate the first model of the hospital risk
makeSample

create a sample of the first model stored in a file
Table

make an array of bias, variance and R for different distribution and estimators
DV

implements the De Vielder approximation
adequadExp

test the adequation of a random variable to the exponential distribution
simul2

simulate the second model of the hospital risk
KM

plots a survival function with a Kaplan Meier variant
calcErrorParam

compute the bias, variance of the non parametric estimator
estimDV

compute the De Vielder estimator
calcErrorDV

compute the bias, variance of the De Vielder approximation
calcErrorNonParam

compute the bias, variance of the non parametric estimator