View source: R/exp_prst_plot.R
exp_prst_plot | R Documentation |
exp_prst_plot
returns parameters defining a PRST for the exponential distribution
(as developed by Abraham Wald), and creates the plot of the results and defined parameters.
exp_prst_plot(
r = NULL,
t = NULL,
mtbf0 = 100,
mtbfa = 200,
alpha = 0.1,
beta = 0.1
)
r |
(Optional, default as NULL) The cumulative number of failures up to time |
t |
(Optional, default as NULL) The cumulative (operational) time.
If specified it must be of equal length to |
mtbf0 |
The minimum acceptable MTBF. |
mtbfa |
A value of MTBF greater than |
alpha |
The producer's risk of rejecting equipment with MTBF > MTBFA (the probility of rejecting good equipment). Default = 0.10. |
beta |
The consumer's risk of accepting equipment with MTBF < MTBF0. (the probility of accepting bad equipment). Default = 0.10. |
The output will return r
= the number of failures at which
the test terminated, T
= the time at which the test is terminated,
a
= y-intercept for the accept time, b
= slope of the accept
and reject lines, c
= y-intercept of the reject line, df
=
a data.frame
giving the number of failures and the associated time
times at which the test is terminated and the equipment accepted or rejected,
as well as some text which outputs the form of the accept/reject lines, and
the accept/reject times. A plot will also be returned plotting the accept/reject
lines, truncation lines, and the observed data as step function if supplied by
parameters r
and t
.
Mil-Hdbk-781A
Wald, Abraham. Sequential Analysis. John Wiley & Sons, 1947.
Brazovsky, Igor. Reliability Theory and Practice. Prentice Hall, 1961.
exp_reliability_req
, exp_test_duration
,
exp_test_demo
, exp_prst
exp_prst_plot(r=NULL, t=NULL, mtbf0=100, mtbfa=200, alpha=.1, beta=.1)
exp_prst_plot(
r = c(0,1,2,3,4,5,6,6,14),
t = c(0,100,150,200,250,275,300,1500,2060),
mtbf0=100, mtbfa=200, alpha=.1, beta=.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.