diff --git a/DESCRIPTION b/DESCRIPTION index 5259cc9..9592f33 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -29,7 +29,7 @@ Description: The weibulltools package focuses on statistical methods and beta-binomial confidence bounds. If desired, mixture model analysis can be done with segmented regression and the EM algorithm. - Besides the well-known weibull analysis, the package also contains + Besides the well-known Weibull analysis, the package also contains Monte Carlo methods for the correction and completion of imprecisely recorded or unknown lifetime characteristics. (Verband der Automobilindustrie e.V. (VDA), 2016, ). diff --git a/NEWS.md b/NEWS.md index c89c507..7c7a977 100644 --- a/NEWS.md +++ b/NEWS.md @@ -20,7 +20,7 @@ * `predict_quantile()`: Renamed `loc_sc_params` with `dist_params`. * `plot_mod.default()` (former `plot_mod()`): Renamed `event` with `status`. Renamed `loc_sc_params` with `dist_params`. Removed `y`. * `plot_mod_mix()`: Deprecated, use `plot_mod()` instead. Renamed `event` with `status`. -* `plot_pop()`: Added argument `tol` to restrict the range of failure probabilities. Removed argument `color`. Renamed argument `params` to `dist_params_tbl`, which only supports location and scale parameters (also for `distribution = "weibull"`). Changed behaviour of `dist_params_tbl`: A `tibble` is now recommended instead of a vector. +* `plot_pop()`: Added argument `tol` to restrict the range of failure probabilities. Removed argument `color`. Renamed argument `params` to `dist_params_tbl`, which only supports location and scale parameters (also for `distribution = "weibull"`). Changed behavior of `dist_params_tbl`: A `tibble` is now recommended instead of a vector. ### Confidence Intervals * `confint_betabinom.default()` (former `confint_betabinom()`): Renamed `event` with `status`. Renamed `loc_sc_params` with `dist_params`. Added argument `b_lives` which allows the user to specify probabilities `p` for `B_p-lives` to be considered. @@ -102,10 +102,10 @@ * Function `plot_mod_mix()` was revised and updated in the way that the obtained results of the function `mixmod_em()` can be visualized. * Function `plot_prob_mix()` was revised and updated in the way that the obtained results of the function `mixmod_em()` can be visualized. * Implementation of EM-Algorithm using Newton-Raphson. The algorithm is written in c++ (`mixture_em_cpp()`) and is called in `mixmod_em()`. -* New method for the computation of Fisher's Confidence Bounds regarding probabilities is used. These method is called "z-Procedure" and is more appropriate to manage the bend-back behaviour. Therefore an adjustment of functions `delta_method()` and `confint_fisher()` was made. -* Implementation of log-location-scale models with threshold parameter like three-parametric weibull ("weibull3"), three-parametric lognormal ("lognormal3") and three-parametric loglogistic ("loglogistic3"). +* New method for the computation of Fisher's Confidence Bounds regarding probabilities is used. These method is called "z-Procedure" and is more appropriate to manage the bend-back behavior. Therefore an adjustment of functions `delta_method()` and `confint_fisher()` was made. +* Implementation of log-location-scale models with threshold parameter like three-parametric Weibull ("weibull3"), three-parametric lognormal ("lognormal3") and three-parametric loglogistic ("loglogistic3"). * Implementation of location-scale models like smallest extreme value ("sev"), normal ("normal") and logistic ("logistic"). * Implementation of _Log-Likelihood Profiling_ for three-parametric models in function `loglik_profiling()`. In general this function is used inside `ml_estimation()` for the purpose of estimating threshold parameter of three-parametric models. * Implementation of _R-Squared Profiling_ for three-parametric models in function `r_squared_profiling()`. In general this function is used inside `rank_regression()` for the purpose of estimating threshold parameter of three-parametric models. * Implementation of _Log-Likelihood Function_ for all implemented models in function `loglik_function()`. In general this function is used inside `ml_estimation()` for the purpose of estimating the variance-covariance matrix of location-scale models "sev", "normal" and "logistic". The function is also used to estimate the variance-covariance matrix of log-location-scale models with a threshold parameter, i.e. "weibull3", "lognormal3" and "loglogistic3". -* new argument in function `ml_estimation()`: _wts_ for case weights. +* new argument in function `ml_estimation()`: `wts` for case weights. diff --git a/R/RcppExports.R b/R/RcppExports.R index 8ddac23..bee1e7d 100644 --- a/R/RcppExports.R +++ b/R/RcppExports.R @@ -52,7 +52,7 @@ normalize <- function(M) { #' cycles. #' @param status a vector of binary data (0 or 1) indicating whether unit \emph{i} #' is a right censored observation (= 0) or a failure (= 1). -#' @param post a numeric matrix specifiying initial a-posteriori probabilities. +#' @param post a numeric matrix specifying initial a-posteriori probabilities. #' The number of rows have to be in line with observations \code{x} and the #' number of columns must equal the mixture components \code{k}. #' @param distribution supposed distribution of mixture model components. diff --git a/R/data.R b/R/data.R index c3535e8..af8af8e 100644 --- a/R/data.R +++ b/R/data.R @@ -25,7 +25,7 @@ #' \item{distance}{Observed distance.} #' \item{failure_mode}{ #' One of two failure modes (\code{mode_1} and \code{mode_2}) -#' or \code{censored} if no failure occured. +#' or \code{censored} if no failure occurred. #' } #' \item{status}{ #' If \code{failure_mode} is either \code{mode_1} or \code{mode_2} @@ -42,14 +42,14 @@ #' High Voltage Stress Test for the Dielectric Insulation of Generator armature bars #' #' A sample of 58 segments of bars were subjected to a high voltage stress test. -#' Two failure modes occured, Mode D (degradation failure) and Mode E (early failure). +#' Two failure modes occurred, Mode D (degradation failure) and Mode E (early failure). #' #' @format A tibble with 58 rows and 3 variables: #' \describe{ #' \item{hours}{Observed hours.} #' \item{failure_mode}{ #' One of two failure modes (\code{D} and \code{E}) -#' or \code{censored} if no failure occured. +#' or \code{censored} if no failure occurred. #' } #' \item{status}{ #' If \code{failure_mode} is either \code{D} or \code{E} diff --git a/R/delay_distributions.R b/R/delay_distributions.R index 7393d95..4720190 100644 --- a/R/delay_distributions.R +++ b/R/delay_distributions.R @@ -802,7 +802,7 @@ dist_delay_report <- function(date_repair, #' to \code{\link{mcs_delay}} is recommended. #' #' @details -#' The delay in report describes the time between the occurence of a damage and +#' The delay in report describes the time between the occurrence of a damage and #' the registration in the warranty database. For a given date where the analysis #' is made there could be units which had a failure but are not registered in the #' database and therefore treated as censored units. To overcome this problem diff --git a/R/mixture_identification.R b/R/mixture_identification.R index 536fccb..3f0d501 100644 --- a/R/mixture_identification.R +++ b/R/mixture_identification.R @@ -93,7 +93,7 @@ #' methods = c("johnson", "kaplan", "nelson") #' ) #' -#' # Example 1 - Mixture identification using k = 2 two-parametric weibull models: +#' # Example 1 - Mixture identification using k = 2 two-parametric Weibull models: #' mix_mod_weibull <- mixmod_regression( #' x = prob_mix, #' distribution = "weibull", @@ -239,7 +239,7 @@ mixmod_regression.wt_cdf_estimation <- function( #' method = "johnson" #' ) #' -#' # Example 1 - Mixture identification using k = 2 two-parametric weibull models: +#' # Example 1 - Mixture identification using k = 2 two-parametric Weibull models: #' mix_mod_weibull <- mixmod_regression( #' x = prob_mix$x, #' y = prob_mix$prob, @@ -446,7 +446,7 @@ print.wt_mixmod_regression_list <- function(x, #' #' @description #' This method applies the expectation-maximization (EM) algorithm to estimate the -#' parameters of a univariate weibull mixture model. See 'Details'. +#' parameters of a univariate Weibull mixture model. See 'Details'. #' #' @details #' The EM algorithm is an iterative algorithm for which starting values must be @@ -467,7 +467,7 @@ print.wt_mixmod_regression_list <- function(x, #' @param x An object of class \code{wt_reliability_data} returned from #' \code{\link{reliability_data}}. #' @param distribution \code{"weibull"} until further distributions are implemented. -#' @param conf_level Confidence level for the intervals of the weibull parameters +#' @param conf_level Confidence level for the intervals of the Weibull parameters #' of every component \code{k}. #' @param k Number of mixture components. #' @param method \code{"EM"} until other methods are implemented. diff --git a/R/plot_functions.R b/R/plot_functions.R index eb5c860..b391ebd 100644 --- a/R/plot_functions.R +++ b/R/plot_functions.R @@ -359,7 +359,7 @@ plot_prob.wt_mixmod_regression_list <- function(x, #' x axis. #' @param title_y A character string which is assigned to the title of the #' y axis. -#' @param title_trace A character string whis is assigned to the trace shown in +#' @param title_trace A character string which is assigned to the trace shown in #' the legend. #' @param plot_method Package, which is used for generating the plot output. #' @template dots @@ -494,7 +494,7 @@ plot_prob_ <- function( #' #' The name of the legend entry is a combination of the \code{title_trace} and the #' number of determined subgroups. If \code{title_trace = "Group"} and the data -#' could be splitted in two groups, the legend entries would be "Group 1" and "Group 2". +#' could be split in two groups, the legend entries would be "Group 1" and "Group 2". #' #' @encoding UTF-8 #' @references Doganaksoy, N.; Hahn, G.; Meeker, W. Q., Reliability Analysis by @@ -592,7 +592,7 @@ plot_prob_mix <- function( #' The name of the legend entry is a combination of the \code{title_trace} and #' the number of determined subgroups from \code{\link{mixmod_regression}} or #' \code{\link{mixmod_em}}. If \code{title_trace = "Line"} and the -#' data could be splitted in two groups, the legend entries would be "Line: 1" +#' data could be split in two groups, the legend entries would be "Line: 1" #' and "Line: 2". #' #' @param p_obj A plot object returned from \code{\link{plot_prob}}. @@ -1037,7 +1037,7 @@ plot_mod_mix <- function(p_obj, #' regression line, the latter is provided as well. #' #' @param p_obj A plot object returned from \code{\link{plot_prob}}. -#' @param x Confindence interval as returned by \code{\link{confint_betabinom}} +#' @param x Confidence interval as returned by \code{\link{confint_betabinom}} #' or \code{\link{confint_fisher}}. #' @param title_trace_mod A character string which is assigned to the mod trace #' in the legend. diff --git a/R/probability_estimators.R b/R/probability_estimators.R index 3eeb90f..2739272 100644 --- a/R/probability_estimators.R +++ b/R/probability_estimators.R @@ -499,7 +499,7 @@ johnson_method_ <- function(data) { #' Whereas the non-parametric Kaplan-Meier estimator is used to estimate the #' survival function \emph{S(t)} in terms of (multiple) right censored data, the #' complement is an estimate of the cumulative distribution function \emph{F(t)}. -#' One modification is made in contrast to the orginial Kaplan-Meier estimator +#' One modification is made in contrast to the original Kaplan-Meier estimator #' (see 'References'). #' #' \strong{Note} : The \emph{Kaplan-Meier} estimator does not assign ranks to diff --git a/R/weibulltools-package.R b/R/weibulltools-package.R index d32d7a5..3cbd005 100644 --- a/R/weibulltools-package.R +++ b/R/weibulltools-package.R @@ -9,7 +9,7 @@ #' make the examination and adjustment as well as the analysis and #' interpretation of field data (and bench tests) as simple as possible. #' -#' Besides the well-known weibull analysis, the package supports multiple +#' Besides the well-known Weibull analysis, the package supports multiple #' lifetime distributions and also contains Monte Carlo methods for the #' correction and completion of imprecisely recorded or unknown lifetime #' characteristics. diff --git a/README.Rmd b/README.Rmd index dfcabcc..e279b3c 100644 --- a/README.Rmd +++ b/README.Rmd @@ -26,7 +26,7 @@ options(tibble.print_min = 5, tibble.print_max = 5) The *weibulltools* package focuses on statistical methods and visualizations that are often used in reliability engineering. It provides a compact and easily accessible set of methods and visualization tools that make the examination and adjustment as well as the analysis and interpretation of field data (and bench tests) as simple as possible. -Besides the well-known weibull analysis, the package supports multiple lifetime distributions and also contains Monte Carlo methods for the correction and completion of imprecisely recorded or unknown lifetime characteristics. +Besides the well-known Weibull analysis, the package supports multiple lifetime distributions and also contains Monte Carlo methods for the correction and completion of imprecisely recorded or unknown lifetime characteristics. Plots are created statically ([ggplot2](https://ggplot2.tidyverse.org/)) or interactively ([plotly](https://plotly.com/r/)) and can be customized with functions of the respective visualization package. diff --git a/README.md b/README.md index bc62afa..b2c7e31 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ visualization tools that make the examination and adjustment as well as the analysis and interpretation of field data (and bench tests) as simple as possible. -Besides the well-known weibull analysis, the package supports multiple +Besides the well-known Weibull analysis, the package supports multiple lifetime distributions and also contains Monte Carlo methods for the correction and completion of imprecisely recorded or unknown lifetime characteristics. diff --git a/docs/404.html b/docs/404.html index ece257d..acff3b5 100644 --- a/docs/404.html +++ b/docs/404.html @@ -78,6 +78,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/articles/Life_Data_Analysis_Part_I.html b/docs/articles/Life_Data_Analysis_Part_I.html index 9d2967e..df2ea9f 100644 --- a/docs/articles/Life_Data_Analysis_Part_I.html +++ b/docs/articles/Life_Data_Analysis_Part_I.html @@ -37,6 +37,12 @@ @@ -361,7 +367,7 @@

Contents

-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 46c70ab..de66b75 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,9 +1,9 @@ pandoc: 2.7.3 -pkgdown: 1.6.1.9000 -pkgdown_sha: 6094ac3dd80a1f3f1d4e2f47d0ed4716d51362b0 +pkgdown: 1.6.1 +pkgdown_sha: ~ articles: Life_Data_Analysis_Part_I: Life_Data_Analysis_Part_I.html Life_Data_Analysis_Part_II: Life_Data_Analysis_Part_II.html Life_Data_Analysis_Part_III: Life_Data_Analysis_Part_III.html -last_built: 2021-01-05T10:12Z +last_built: 2021-01-11T08:29Z diff --git a/docs/reference/alloy.html b/docs/reference/alloy.html index db1cb0f..5c88ee8 100644 --- a/docs/reference/alloy.html +++ b/docs/reference/alloy.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/calculate_ranks.html b/docs/reference/calculate_ranks.html index a4df9f8..1a3b570 100644 --- a/docs/reference/calculate_ranks.html +++ b/docs/reference/calculate_ranks.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/confint_betabinom.default.html b/docs/reference/confint_betabinom.default.html index 6a75f6a..f61082b 100644 --- a/docs/reference/confint_betabinom.default.html +++ b/docs/reference/confint_betabinom.default.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/confint_betabinom.html b/docs/reference/confint_betabinom.html index a57f06f..0217f66 100644 --- a/docs/reference/confint_betabinom.html +++ b/docs/reference/confint_betabinom.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/confint_fisher.default.html b/docs/reference/confint_fisher.default.html index a5aae67..26acc1b 100644 --- a/docs/reference/confint_fisher.default.html +++ b/docs/reference/confint_fisher.default.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/confint_fisher.html b/docs/reference/confint_fisher.html index 18f9fc9..86f1887 100644 --- a/docs/reference/confint_fisher.html +++ b/docs/reference/confint_fisher.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/delta_method.html b/docs/reference/delta_method.html index c67faa3..c8d87dd 100644 --- a/docs/reference/delta_method.html +++ b/docs/reference/delta_method.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/dist_delay.html b/docs/reference/dist_delay.html index a23e30a..e0140b5 100644 --- a/docs/reference/dist_delay.html +++ b/docs/reference/dist_delay.html @@ -84,6 +84,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/dist_delay_register.html b/docs/reference/dist_delay_register.html index e12eb83..b1f2789 100644 --- a/docs/reference/dist_delay_register.html +++ b/docs/reference/dist_delay_register.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/dist_delay_report.html b/docs/reference/dist_delay_report.html index 30179e3..ce45761 100644 --- a/docs/reference/dist_delay_report.html +++ b/docs/reference/dist_delay_report.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/dist_mileage.html b/docs/reference/dist_mileage.html index 7bcb6fe..7ae6d64 100644 --- a/docs/reference/dist_mileage.html +++ b/docs/reference/dist_mileage.html @@ -83,6 +83,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/estimate_cdf.default.html b/docs/reference/estimate_cdf.default.html index 9f313b2..72ace99 100644 --- a/docs/reference/estimate_cdf.default.html +++ b/docs/reference/estimate_cdf.default.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/estimate_cdf.html b/docs/reference/estimate_cdf.html index 405b936..3549ff2 100644 --- a/docs/reference/estimate_cdf.html +++ b/docs/reference/estimate_cdf.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/index.html b/docs/reference/index.html index 290a351..c4283fd 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -78,6 +78,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/johnson_method.html b/docs/reference/johnson_method.html index 8489848..e180878 100644 --- a/docs/reference/johnson_method.html +++ b/docs/reference/johnson_method.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/kaplan_method.html b/docs/reference/kaplan_method.html index 3016277..04555e2 100644 --- a/docs/reference/kaplan_method.html +++ b/docs/reference/kaplan_method.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/loglik_function.html b/docs/reference/loglik_function.html index 16abdcd..731b625 100644 --- a/docs/reference/loglik_function.html +++ b/docs/reference/loglik_function.html @@ -84,6 +84,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/loglik_profiling.html b/docs/reference/loglik_profiling.html index 0e2b94f..2a2fe60 100644 --- a/docs/reference/loglik_profiling.html +++ b/docs/reference/loglik_profiling.html @@ -82,6 +82,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mcs_delay.html b/docs/reference/mcs_delay.html index aa4d09f..f4e1328 100644 --- a/docs/reference/mcs_delay.html +++ b/docs/reference/mcs_delay.html @@ -88,6 +88,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mcs_delay_register.html b/docs/reference/mcs_delay_register.html index 997f698..e63b537 100644 --- a/docs/reference/mcs_delay_register.html +++ b/docs/reference/mcs_delay_register.html @@ -83,6 +83,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mcs_delay_report.html b/docs/reference/mcs_delay_report.html index 78cb0a1..7d6938d 100644 --- a/docs/reference/mcs_delay_report.html +++ b/docs/reference/mcs_delay_report.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mcs_delays.html b/docs/reference/mcs_delays.html index 635e799..185ff68 100644 --- a/docs/reference/mcs_delays.html +++ b/docs/reference/mcs_delays.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mcs_mileage.html b/docs/reference/mcs_mileage.html index 5e60584..8b96dda 100644 --- a/docs/reference/mcs_mileage.html +++ b/docs/reference/mcs_mileage.html @@ -84,6 +84,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mixmod_em.default.html b/docs/reference/mixmod_em.default.html index a702b80..e745bc0 100644 --- a/docs/reference/mixmod_em.default.html +++ b/docs/reference/mixmod_em.default.html @@ -41,7 +41,7 @@ +parameters of a univariate Weibull mixture model. See 'Details'." /> @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mixmod_em.html b/docs/reference/mixmod_em.html index a84b9c3..03fe2fe 100644 --- a/docs/reference/mixmod_em.html +++ b/docs/reference/mixmod_em.html @@ -41,7 +41,7 @@ +parameters of a univariate Weibull mixture model. See 'Details'." /> @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mixmod_regression.default.html b/docs/reference/mixmod_regression.default.html index 97a0b06..8d80d2c 100644 --- a/docs/reference/mixmod_regression.default.html +++ b/docs/reference/mixmod_regression.default.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mixmod_regression.html b/docs/reference/mixmod_regression.html index e2febc8..c74ec4a 100644 --- a/docs/reference/mixmod_regression.html +++ b/docs/reference/mixmod_regression.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mixture_em_cpp.html b/docs/reference/mixture_em_cpp.html index a2dcfcd..884a475 100644 --- a/docs/reference/mixture_em_cpp.html +++ b/docs/reference/mixture_em_cpp.html @@ -84,6 +84,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/ml_estimation.default.html b/docs/reference/ml_estimation.default.html index 59bcec0..5d4b0cc 100644 --- a/docs/reference/ml_estimation.default.html +++ b/docs/reference/ml_estimation.default.html @@ -84,6 +84,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/ml_estimation.html b/docs/reference/ml_estimation.html index 1ee754f..72c74ae 100644 --- a/docs/reference/ml_estimation.html +++ b/docs/reference/ml_estimation.html @@ -84,6 +84,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/mr_method.html b/docs/reference/mr_method.html index 6a54e49..4ef8cd4 100644 --- a/docs/reference/mr_method.html +++ b/docs/reference/mr_method.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/nelson_method.html b/docs/reference/nelson_method.html index f1903c1..b0788c9 100644 --- a/docs/reference/nelson_method.html +++ b/docs/reference/nelson_method.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_conf.default.html b/docs/reference/plot_conf.default.html index 01b7c69..94e2bac 100644 --- a/docs/reference/plot_conf.default.html +++ b/docs/reference/plot_conf.default.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_conf.html b/docs/reference/plot_conf.html index cce4e86..55b05b2 100644 --- a/docs/reference/plot_conf.html +++ b/docs/reference/plot_conf.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_layout.html b/docs/reference/plot_layout.html index 2684842..2342fb4 100644 --- a/docs/reference/plot_layout.html +++ b/docs/reference/plot_layout.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_mod.default.html b/docs/reference/plot_mod.default.html index 39681d5..11c922b 100644 --- a/docs/reference/plot_mod.default.html +++ b/docs/reference/plot_mod.default.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_mod.html b/docs/reference/plot_mod.html index 5d7ea95..195d5b6 100644 --- a/docs/reference/plot_mod.html +++ b/docs/reference/plot_mod.html @@ -83,6 +83,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_mod_mix.html b/docs/reference/plot_mod_mix.html index cd556d4..0b4dc1c 100644 --- a/docs/reference/plot_mod_mix.html +++ b/docs/reference/plot_mod_mix.html @@ -83,6 +83,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_pop.html b/docs/reference/plot_pop.html index 435f1f6..ffba644 100644 --- a/docs/reference/plot_pop.html +++ b/docs/reference/plot_pop.html @@ -79,6 +79,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_prob.default.html b/docs/reference/plot_prob.default.html index 66800c3..4c95754 100644 --- a/docs/reference/plot_prob.default.html +++ b/docs/reference/plot_prob.default.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_prob.html b/docs/reference/plot_prob.html index 2ed267b..f5f82c0 100644 --- a/docs/reference/plot_prob.html +++ b/docs/reference/plot_prob.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/plot_prob_mix.html b/docs/reference/plot_prob_mix.html index 75ff3a1..5899eaf 100644 --- a/docs/reference/plot_prob_mix.html +++ b/docs/reference/plot_prob_mix.html @@ -81,6 +81,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/predict_prob.html b/docs/reference/predict_prob.html index 3d9a3fa..7acd81c 100644 --- a/docs/reference/predict_prob.html +++ b/docs/reference/predict_prob.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/predict_quantile.html b/docs/reference/predict_quantile.html index f968792..3c10b7c 100644 --- a/docs/reference/predict_quantile.html +++ b/docs/reference/predict_quantile.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/r_squared_profiling.default.html b/docs/reference/r_squared_profiling.default.html index acc5431..96d774d 100644 --- a/docs/reference/r_squared_profiling.default.html +++ b/docs/reference/r_squared_profiling.default.html @@ -82,6 +82,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/r_squared_profiling.html b/docs/reference/r_squared_profiling.html index 34d2787..9a0f078 100644 --- a/docs/reference/r_squared_profiling.html +++ b/docs/reference/r_squared_profiling.html @@ -82,6 +82,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/rank_regression.default.html b/docs/reference/rank_regression.default.html index f8a1967..a1d1e3d 100644 --- a/docs/reference/rank_regression.default.html +++ b/docs/reference/rank_regression.default.html @@ -85,6 +85,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/rank_regression.html b/docs/reference/rank_regression.html index 30faf17..241e68b 100644 --- a/docs/reference/rank_regression.html +++ b/docs/reference/rank_regression.html @@ -85,6 +85,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/reliability_data.html b/docs/reference/reliability_data.html index bccffc2..706f26a 100644 --- a/docs/reference/reliability_data.html +++ b/docs/reference/reliability_data.html @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/shock.html b/docs/reference/shock.html index 55fe67f..5cf5aee 100644 --- a/docs/reference/shock.html +++ b/docs/reference/shock.html @@ -79,6 +79,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/voltage.html b/docs/reference/voltage.html index 034b7cb..19c4a24 100644 --- a/docs/reference/voltage.html +++ b/docs/reference/voltage.html @@ -41,7 +41,7 @@ +Two failure modes occurred, Mode D (degradation failure) and Mode E (early failure)." /> @@ -80,6 +80,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/reference/weibulltools-package.html b/docs/reference/weibulltools-package.html index f13b930..a87529d 100644 --- a/docs/reference/weibulltools-package.html +++ b/docs/reference/weibulltools-package.html @@ -45,7 +45,7 @@ compact and easily accessible set of methods and visualization tools that make the examination and adjustment as well as the analysis and interpretation of field data (and bench tests) as simple as possible. -Besides the well-known weibull analysis, the package supports multiple +Besides the well-known Weibull analysis, the package supports multiple lifetime distributions and also contains Monte Carlo methods for the correction and completion of imprecisely recorded or unknown lifetime characteristics. @@ -91,6 +91,12 @@
-

Site built with pkgdown 1.6.1.9000.

+

Site built with pkgdown 1.6.1.

diff --git a/man/kaplan_method.Rd b/man/kaplan_method.Rd index 0a29125..cde391a 100644 --- a/man/kaplan_method.Rd +++ b/man/kaplan_method.Rd @@ -40,7 +40,7 @@ to \code{\link{estimate_cdf}} is recommended. Whereas the non-parametric Kaplan-Meier estimator is used to estimate the survival function \emph{S(t)} in terms of (multiple) right censored data, the complement is an estimate of the cumulative distribution function \emph{F(t)}. -One modification is made in contrast to the orginial Kaplan-Meier estimator +One modification is made in contrast to the original Kaplan-Meier estimator (see 'References'). \strong{Note} : The \emph{Kaplan-Meier} estimator does not assign ranks to diff --git a/man/mcs_delay_report.Rd b/man/mcs_delay_report.Rd index 70dbccd..00ee47b 100644 --- a/man/mcs_delay_report.Rd +++ b/man/mcs_delay_report.Rd @@ -58,7 +58,7 @@ distribution. to \code{\link{mcs_delay}} is recommended. } \details{ -The delay in report describes the time between the occurence of a damage and +The delay in report describes the time between the occurrence of a damage and the registration in the warranty database. For a given date where the analysis is made there could be units which had a failure but are not registered in the database and therefore treated as censored units. To overcome this problem diff --git a/man/mixmod_em.Rd b/man/mixmod_em.Rd index 0162458..e4ef21c 100644 --- a/man/mixmod_em.Rd +++ b/man/mixmod_em.Rd @@ -28,7 +28,7 @@ mixmod_em(x, ...) \item{distribution}{\code{"weibull"} until further distributions are implemented.} -\item{conf_level}{Confidence level for the intervals of the weibull parameters +\item{conf_level}{Confidence level for the intervals of the Weibull parameters of every component \code{k}.} \item{k}{Number of mixture components.} @@ -63,7 +63,7 @@ further results of the EM algorithm and is therefore called } \description{ This method applies the expectation-maximization (EM) algorithm to estimate the -parameters of a univariate weibull mixture model. See 'Details'. +parameters of a univariate Weibull mixture model. See 'Details'. } \details{ The EM algorithm is an iterative algorithm for which starting values must be diff --git a/man/mixmod_em.default.Rd b/man/mixmod_em.default.Rd index 5017fb7..4da30d9 100644 --- a/man/mixmod_em.default.Rd +++ b/man/mixmod_em.default.Rd @@ -28,7 +28,7 @@ is a right censored observation (= 0) or a failure (= 1).} \item{distribution}{\code{"weibull"} until further distributions are implemented.} -\item{conf_level}{Confidence level for the intervals of the weibull parameters +\item{conf_level}{Confidence level for the intervals of the Weibull parameters of every component \code{k}.} \item{k}{Number of mixture components.} @@ -65,7 +65,7 @@ further results of the EM algorithm and is therefore called } \description{ This method applies the expectation-maximization (EM) algorithm to estimate the -parameters of a univariate weibull mixture model. See 'Details'. +parameters of a univariate Weibull mixture model. See 'Details'. } \details{ The EM algorithm is an iterative algorithm for which starting values must be diff --git a/man/mixmod_regression.Rd b/man/mixmod_regression.Rd index 432a1f2..7c85bd2 100644 --- a/man/mixmod_regression.Rd +++ b/man/mixmod_regression.Rd @@ -116,7 +116,7 @@ prob_mix_mult <- estimate_cdf( methods = c("johnson", "kaplan", "nelson") ) -# Example 1 - Mixture identification using k = 2 two-parametric weibull models: +# Example 1 - Mixture identification using k = 2 two-parametric Weibull models: mix_mod_weibull <- mixmod_regression( x = prob_mix, distribution = "weibull", diff --git a/man/mixmod_regression.default.Rd b/man/mixmod_regression.default.Rd index e3a9687..c92fbae 100644 --- a/man/mixmod_regression.default.Rd +++ b/man/mixmod_regression.default.Rd @@ -116,7 +116,7 @@ prob <- estimate_cdf( method = "johnson" ) - # Example 1 - Mixture identification using k = 2 two-parametric weibull models: + # Example 1 - Mixture identification using k = 2 two-parametric Weibull models: mix_mod_weibull <- mixmod_regression( x = prob_mix$x, y = prob_mix$prob, diff --git a/man/mixture_em_cpp.Rd b/man/mixture_em_cpp.Rd index fdaed8e..1eb40de 100644 --- a/man/mixture_em_cpp.Rd +++ b/man/mixture_em_cpp.Rd @@ -25,7 +25,7 @@ cycles.} \item{status}{a vector of binary data (0 or 1) indicating whether unit \emph{i} is a right censored observation (= 0) or a failure (= 1).} -\item{post}{a numeric matrix specifiying initial a-posteriori probabilities. +\item{post}{a numeric matrix specifying initial a-posteriori probabilities. The number of rows have to be in line with observations \code{x} and the number of columns must equal the mixture components \code{k}.} diff --git a/man/plot_conf.Rd b/man/plot_conf.Rd index 235e7e3..8eab92f 100644 --- a/man/plot_conf.Rd +++ b/man/plot_conf.Rd @@ -19,7 +19,7 @@ plot_conf(p_obj, x, ...) \arguments{ \item{p_obj}{A plot object returned from \code{\link{plot_prob}}.} -\item{x}{Confindence interval as returned by \code{\link{confint_betabinom}} +\item{x}{Confidence interval as returned by \code{\link{confint_betabinom}} or \code{\link{confint_fisher}}.} \item{...}{Further arguments passed to or from other methods. Currently not used.} diff --git a/man/plot_conf.default.Rd b/man/plot_conf.default.Rd index 23815c3..a721cec 100644 --- a/man/plot_conf.default.Rd +++ b/man/plot_conf.default.Rd @@ -29,7 +29,7 @@ The list can be of length 1 or 2. For more information see \strong{Details}.} \item{direction}{A character string specifying the direction of the plotted interval(s). Must be either "y" (failure probabilities) or "x" (quantiles).} -\item{title_trace}{A character string whis is assigned to the trace shown in +\item{title_trace}{A character string which is assigned to the trace shown in the legend.} \item{...}{Further arguments passed to or from other methods. Currently not used.} diff --git a/man/plot_mod.Rd b/man/plot_mod.Rd index 0ef0ccd..e698ec2 100644 --- a/man/plot_mod.Rd +++ b/man/plot_mod.Rd @@ -35,7 +35,7 @@ multiple lines are plotted. The name of the legend entry is a combination of the \code{title_trace} and the number of determined subgroups from \code{\link{mixmod_regression}} or \code{\link{mixmod_em}}. If \code{title_trace = "Line"} and the -data could be splitted in two groups, the legend entries would be "Line: 1" +data could be split in two groups, the legend entries would be "Line: 1" and "Line: 2". } \examples{ diff --git a/man/plot_prob.default.Rd b/man/plot_prob.default.Rd index b8ef43d..df4b83e 100644 --- a/man/plot_prob.default.Rd +++ b/man/plot_prob.default.Rd @@ -43,7 +43,7 @@ x axis.} \item{title_y}{A character string which is assigned to the title of the y axis.} -\item{title_trace}{A character string whis is assigned to the trace shown in +\item{title_trace}{A character string which is assigned to the trace shown in the legend.} \item{plot_method}{Package, which is used for generating the plot output.} diff --git a/man/plot_prob_mix.Rd b/man/plot_prob_mix.Rd index 0c11dad..f7a62f1 100644 --- a/man/plot_prob_mix.Rd +++ b/man/plot_prob_mix.Rd @@ -45,7 +45,7 @@ x axis.} \item{title_y}{A character string which is assigned to the title of the y axis.} -\item{title_trace}{A character string whis is assigned to the trace shown in +\item{title_trace}{A character string which is assigned to the trace shown in the legend.} \item{plot_method}{Package, which is used for generating the plot output.} @@ -78,7 +78,7 @@ argument \code{title_x} respective \code{title_y}, i.e. if The name of the legend entry is a combination of the \code{title_trace} and the number of determined subgroups. If \code{title_trace = "Group"} and the data -could be splitted in two groups, the legend entries would be "Group 1" and "Group 2". +could be split in two groups, the legend entries would be "Group 1" and "Group 2". } \examples{ # Vectors diff --git a/man/shock.Rd b/man/shock.Rd index b9e5b63..67c8765 100644 --- a/man/shock.Rd +++ b/man/shock.Rd @@ -10,7 +10,7 @@ A tibble with 38 rows and 3 variables: \item{distance}{Observed distance.} \item{failure_mode}{ One of two failure modes (\code{mode_1} and \code{mode_2}) - or \code{censored} if no failure occured. + or \code{censored} if no failure occurred. } \item{status}{ If \code{failure_mode} is either \code{mode_1} or \code{mode_2} diff --git a/man/voltage.Rd b/man/voltage.Rd index 4b78f50..75ab3ce 100644 --- a/man/voltage.Rd +++ b/man/voltage.Rd @@ -10,7 +10,7 @@ A tibble with 58 rows and 3 variables: \item{hours}{Observed hours.} \item{failure_mode}{ One of two failure modes (\code{D} and \code{E}) - or \code{censored} if no failure occured. + or \code{censored} if no failure occurred. } \item{status}{ If \code{failure_mode} is either \code{D} or \code{E} @@ -27,6 +27,6 @@ voltage } \description{ A sample of 58 segments of bars were subjected to a high voltage stress test. -Two failure modes occured, Mode D (degradation failure) and Mode E (early failure). +Two failure modes occurred, Mode D (degradation failure) and Mode E (early failure). } \keyword{datasets} diff --git a/man/weibulltools-package.Rd b/man/weibulltools-package.Rd index 47d4149..56257ba 100644 --- a/man/weibulltools-package.Rd +++ b/man/weibulltools-package.Rd @@ -12,7 +12,7 @@ compact and easily accessible set of methods and visualization tools that make the examination and adjustment as well as the analysis and interpretation of field data (and bench tests) as simple as possible. -Besides the well-known weibull analysis, the package supports multiple +Besides the well-known Weibull analysis, the package supports multiple lifetime distributions and also contains Monte Carlo methods for the correction and completion of imprecisely recorded or unknown lifetime characteristics. diff --git a/src/em_mixture.cpp b/src/em_mixture.cpp index 8880344..3c5c6f8 100644 --- a/src/em_mixture.cpp +++ b/src/em_mixture.cpp @@ -152,7 +152,7 @@ double logLikelihood(arma::mat& posterior, arma::mat& logDensity, //' cycles. //' @param status a vector of binary data (0 or 1) indicating whether unit \emph{i} //' is a right censored observation (= 0) or a failure (= 1). -//' @param post a numeric matrix specifiying initial a-posteriori probabilities. +//' @param post a numeric matrix specifying initial a-posteriori probabilities. //' The number of rows have to be in line with observations \code{x} and the //' number of columns must equal the mixture components \code{k}. //' @param distribution supposed distribution of mixture model components. diff --git a/vignettes/Life_Data_Analysis_Part_II.Rmd b/vignettes/Life_Data_Analysis_Part_II.Rmd index 61c8a0a..08ae9f2 100644 --- a/vignettes/Life_Data_Analysis_Part_II.Rmd +++ b/vignettes/Life_Data_Analysis_Part_II.Rmd @@ -89,7 +89,7 @@ $$x_i=\log(t_i)\;;\; \bar{x}=\frac{1}{n}\cdot\sum_{i=1}^{n}\log(t_i)\;;$$ as well as $$y_i=\Phi^{-1}_{SEV}\left[F(t)\right]=\log\left\{-\log\left[1-F(t_i)\right]\right\}\;and \; \bar{y}=\frac{1}{n}\cdot\sum_{i=1}^{n}\log\left\{-\log\left[1-F(t_i)\right]\right\}.$$ -The estimates of the intercept and slope are equal to the weibull parameters $\mu$ and +The estimates of the intercept and slope are equal to the Weibull parameters $\mu$ and $\sigma$, i.e. $$\hat{\mu}=\hat{a}$$ @@ -188,7 +188,7 @@ In the following both methods are applied to the dataset `shock`. # rank_regression needs estimated failure probabilities: shock_cdf <- estimate_cdf(shock_tbl, methods = "johnson") -# Estimating two-parameter weibull: +# Estimating two-parameter Weibull: rr_weibull <- rank_regression(shock_cdf, distribution = "weibull") rr_weibull @@ -216,7 +216,7 @@ weibull_plot ### ML for two-parameter Weibull distribution ```{r ML_weibull, fig.cap = "Figure 2: ML for a two-parametric Weibull distribution.", message = FALSE} -# Again estimating weibull: +# Again estimating Weibull: ml_weibull <- ml_estimation( shock_tbl, distribution = "weibull"