weibayes | R Documentation |
A simplistic fitting method also called "1-parameter Weibull" based on a "prior" known beta value.
weibayes(x, s=NULL, beta)
x |
Either a vector of class |
s |
An optional vector of suspension data. |
beta |
A weibull shape parameter based on prior like kind study. |
This function implements a very simplistic relationship defined by two lines of R code:
t_eta<-(times^beta)/nfail
out_val<-sum(t_eta)^(1/beta)
Note: for a single failure dataset, with beta = 1, the return is simply the sum of the failure time value plus sum of all suspension times.
Should no failures exist, then the nfail will be set to 1 for a pessimistic solution.
Returns the Weibull scale, Eta, paramater value.
fail<-5 susp<-rweibull(10, 1, 10) eta<-weibayes(fail, susp, beta=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.