buildings_expected_failures: Count the number of expected building failures

Description Usage Arguments Value Examples

Description

Count the number of expected building failures

Usage

1
buildings_expected_failures(element, critical)

Arguments

element

Data frame. Element level data. Any data frame will work as long as it contains buildingid, elementid and E columns.

critical

Numeric. A vector of numbers indicating the elementid values used to filter element.

Value

The expected number of buildings that will fail. A failed building is defined as one in which at least one of the critical elements has reached grade E. If $p_i$ is the probability that the $i$th component has failed then the probability a building with $n$ critical components has failed is $1-\prod_i=1^n\left(1-p_i\right)$.

Examples

1
2
3
4
5
critical_elements <- c(1700, 1701, 1706, 1707, 1708, 1752, 1756, 1769, 1773,
                       1774, 1775, 1786, 1787, 1788, 1826, 1827, 1828, 1829,
                       1830, 1883, 1885, 1887, 1889, 1892, 1893, 1900, 1903,
                       1905, 1983, 1984, 1985)
blockbuster2:::buildings_expected_failures(simulated_elements, critical_elements)

DFE-Capital/blockbuster2 documentation built on May 4, 2019, 1:08 p.m.