% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nhpp.R
\name{predict_nhpp}
\alias{predict_nhpp}
\title{Forecast Cumulative Events from an NHPP Model.}
\usage{
predict_nhpp(object, time, conf_level = 0.95)
}
\arguments{
\item{object}{An object of class \code{nhpp} returned by \code{nhpp()}.}

\item{time}{A numeric vector of cumulative times at which to forecast.
All values must be finite and > 0.}

\item{conf_level}{Confidence level (default 0.95).}
}
\value{
An object of class \code{nhpp_predict} containing:
\item{time}{Forecast times.}
\item{cum_events}{Predicted cumulative events.}
\item{lower_bounds}{Lower confidence bounds.}
\item{upper_bounds}{Upper confidence bounds.}
\item{conf_level}{Confidence level used.}
\item{model_type}{Model type.}
\item{nhpp_object}{The original nhpp object.}
}
\description{
Takes a fitted \code{nhpp} object and a vector of future cumulative times,
returning predicted cumulative events with confidence bounds.
}
\examples{
time <- c(200, 400, 600, 800, 1000)
event <- c(3, 5, 4, 7, 6)
fit <- nhpp(time, event)
fc <- predict_nhpp(fit, time = c(1500, 2000))
print(fc)
plot(fc, main = "NHPP Forecast", xlab = "Time", ylab = "Cumulative Events")
}
\seealso{
Other Repairable Systems Analysis: 
\code{\link{exposure}()},
\code{\link{mcf}()},
\code{\link{nhpp}()},
\code{\link{overlay_nhpp}()},
\code{\link{plot.exposure}()},
\code{\link{plot.mcf}()},
\code{\link{plot.nhpp}()},
\code{\link{plot.nhpp_predict}()},
\code{\link{print.exposure}()},
\code{\link{print.mcf}()},
\code{\link{print.nhpp}()},
\code{\link{print.nhpp_predict}()}
}
\concept{Repairable Systems Analysis}
