bhai.prettyTable {BHAI}R Documentation

Create summary table

Description

Create BHAI summary table

Usage

bhai.prettyTable(pps, pop_norm=FALSE, conf.int=TRUE)

Arguments

pps

The PPS object containing the data.

pop_norm

Indicating whether statistics should be computed per 100,000 population, default: TRUE.

conf.int

Specifying whether confidence intervals should be computed, default: TRUE.

Value

A data.frame containing the summarised results.

See Also

PPS

Examples


data(german_pps_2011_repr)
german_pps_repr = PPS(num_hai_patients = num_hai_patients,
    num_hai_patients_by_stratum = num_hai_patients_by_stratum,
    num_hai_patients_by_stratum_prior = num_hai_patients_by_stratum_prior,
    num_survey_patients = num_survey_patients,
    length_of_stay = length_of_stay,
    loi_pps = loi_pps,
    mccabe_scores_distr = mccabe_scores_distr,
    mccabe_life_exp = mccabe_life_exp,
    hospital_discharges = hospital_discharges,
    population = population,
    country="Germany (representative sample)")
german_pps_repr

set.seed(3)
# The following example is run only for illustratory reasons
# Note that you should never run the function with only 10 Monte-Carlo simulations in practice!
result = bhai(german_pps_repr, nsim=10)
bhai.prettyTable(result)
  

[Package BHAI version 0.99.2 Index]