dgroups {droptest} | R Documentation |
Generates groups of simulated test series.
Description
dgroups
returns a collection test series organized into groups. Each
batch of test series are identified with a group number. Test parameters
will be uniform within each group.
Usage
dgroups(num.groups = NULL, probs = NULL, ...)
Arguments
num.groups |
Integer. Specifies how many groups of drop tests to simulate. |
probs |
Vector. Specifies probabilities of q used for each group. Vector length must equal value of num.groups. |
... |
Passes values to |
Value
Data table of groups where each group consists of multiple drop tests. Consisting of the following elements:
-
F_CRITERIA The failure criteria specified.
-
REACT The total number of simulated reactions (failures).
-
NON_REACT The total number of simulated non-reactions (successes).
-
TRIALS The number of simulated trials performed until failure condition met.
-
MAX_TRIALS The maximum number of simulated trials to perform as specified.
-
PCT_REACT The percent of simulated trials that yielded a reaction (failure).
-
Q The probability of failure (reaction) as specified.
-
P The probability of success (non-reaction).
-
RESULT Whether the simulated test series as a whole failed or passed based on the failure criteria specified.
-
GROUP Denotes the group of simulated test series.
Author(s)
Chad Ross chad.ross@gmail.com
See Also
Examples
dgroups(num.groups = 2, probs = c(0.01, 0.2), num.series = 5)
dgroups(num.groups = 2, probs = c(0.01, 0.2), num.series = 5, max.trials = 60)
dgroups(num.groups = 2, probs = c(0.01, 0.2), num.series = 5, fail.criteria = 2)
dgroups(num.groups = 5, probs = seq(0.01, 0.05, by = 0.01), num.series = 2)