% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reliability.R
\name{ssad_reliability}
\alias{ssad_reliability}
\title{Reliability and Lifetime Analysis for Step-Stress Accelerated Degradation Models}
\usage{
ssad_reliability(
  t,
  process = c("wiener", "gamma"),
  model = c("arrhenius", "power"),
  params,
  S0,
  omega_F
)
}
\arguments{
\item{t}{Numeric vector of time points at which to evaluate reliability.}

\item{process}{Character string specifying the process type: \code{"wiener"} or \code{"gamma"}.}

\item{model}{Character string or function for acceleration model (\code{"arrhenius"} or \code{"power"}).}

\item{params}{Vector of estimated model parameters: \code{c(a, b, sigma)} for Wiener, or \code{c(a, b, u)} for Gamma.}

\item{S0}{Normal use-stress level.}

\item{omega_F}{Failure threshold for degradation.}
}
\value{
A list of class \code{"ssad_reliability"} containing:
  \item{time}{Vector of time points.}
  \item{reliability}{Vector of reliability values R(t).}
  \item{cdf}{Vector of cumulative distribution function values F(t).}
  \item{mttf}{Mean Time To Failure under use stress S0.}
  \item{process}{Degradation process type.}
  \item{S0}{Use stress level.}
  \item{omega_F}{Failure threshold.}
}
\description{
Computes the reliability function R(t), cumulative failure distribution F(t), and Mean Time To Failure (MTTF)
at use stress level S0 and failure threshold omega_F based on fitted Wiener or Gamma process SSADT parameters.
}
\examples{
# Wiener-Arrhenius model example
rel_wiener <- ssad_reliability(
  t = seq(100, 10000, by = 100),
  process = "wiener",
  model = "arrhenius",
  params = c(a = 5.4188, b = -2564.3, sigma = 0.0894),
  S0 = 25,
  omega_F = 200
)
print(rel_wiener$mttf)
}
\references{
Pan, Z., & Balakrishnan, N. (2010). Multiple-Steps Step-Stress Accelerated Degradation Modeling Based on Wiener and Gamma Processes.
\emph{Communications in Statistics - Simulation and Computation}, 39(7), 1384-1402. \doi{10.1080/03610918.2010.496060}
}
