Description Usage Arguments Value Author(s) See Also Examples
dtrials
returns simulated bernoulli trials (drops) that compose one
drop test.
1 2 |
q |
Integer. Specifies the probability that a reaction occurs. A reaction is interpreted as a failure therfore q is the probability of failure for the bernoulli trials. Probability of success would be p = 1 - q. See https://en.wikipedia.org/wiki/Bernoulli_trial |
max.trials |
Integer. The maximum number of bernoulli trials to
perform. where each trial represents one drop of the impactor onto
a sample. Trials performed will always be less than or equal to
|
fail.criteria |
Integer. Specifies number of reactions (failures)
that can occur before an entire test is considered a failure. Must be
less than or equal to |
data.structure |
Instructs function to return result as a data.table or list. Default is data.table. Note: Other functions in this package only work with data.tables. List is an option strictly for future flexibility. |
A data table or list. Containing the following elements:
RAW_VALUES The raw, uncensored trial results. (Only in list output.)
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 the failure condition was met.
MAX_TRIALS The maximum number of simulated trials 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.
Chad Ross chad.ross@gmail.com
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.