Side effect risks in hospital : simulation and estimation


[Package List] [Top]

Documentation for package `rhosp' version 1.01

User Guides and Package Vignettes

Read overview or browse directory.

Help Pages

adequadExp test the adequation of a random variable to the exponential distribution
calcErrorDV compute the bias, variance of the De Vielder approximation
calcErrorNonParam compute the bias, variance of the non parametric estimator
calcErrorParam compute the bias, variance of the non parametric estimator
DV implements the De Vielder approximation
estimDV compute the De Vielder estimator
estimNonParam compute the parametric estimation
estimParam compute the parametric estimation
histo plot the histogram of the variable T
KM plots a survival function with a Kaplan-Meier variant
m1 the first-order moment of T when q(x)=exp(-mu x)
m2 the second-order moment of T when q(x)=exp(-mu x)
mainSimul simulate many times the first model and calculate the risk constant
mainSimul2 simulate many times the second model
makeSample create a sample of the first model stored in a file
makeSample2 create a sample of the second model stored in a file
mom1 the first-order empirical moment of the vector X
mom2 the second-order empirical moment of the vector X
simul simulate the first model of the hospital risk
simul2 simulate the second model of the hospital risk
Table make an array of bias, variance and R for different distribution and estimators