repairComponent: Repairs the component in the given rows at the given grade

Description Usage Arguments Value Examples

Description

Repairs the component in the given rows at the given grade

Usage

1
repairComponent(element.data, rows, grade)

Arguments

element.data

data.frame. The component level data.

rows

numeric. A vector of row indices to update

grade

character. One of "B", "C", "D", "E".

Value

The updated element.data. The new probability of being at grade A is the old probability plus the probability of being at the repaired grade. The probability of being at the repaired grade is set to zero.

Examples

1
2
# repair all B grade components in the first five rows
blockbuster2:::repairComponent(simulated_elements, 1:5, "B")

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