bconsumerrisk {BRDT} | R Documentation |

## Consumer's Risk for Binomial RDT

### Description

Define the consumer's risk function which gets the probability of passing the test when the lower level reliability requirement is not satisfied (for binomial RDT).

### Usage

```
bconsumerrisk(n, c, pi, R)
```

### Arguments

`n` |
RDT sample size. |

`c` |
Maximum allowable failures. |

`pi` |
Failure probability. |

`R` |
Lower level reliability requirement. |

### Value

Probability of consumer's risk

### See Also

`bcore`

for getting the core probability of passting the test;
`boptimal_n`

for getting the optimal test sample size;
`bIndicator`

for getting the binary indicator;

### Examples

```
pi <- pi_MCSim_beta(M = 1000, seed = 10, a = 1, b = 1)
bconsumerrisk(n = 10, c = 2, pi = pi, R = 0.8);
```

[Package

*BRDT*version 0.1.0 Index]