fit.srm.nhpp: NHPP-based software reliability model

View source: R/srm_nhpp.R

fit.srm.nhppR Documentation

NHPP-based software reliability model

Description

Estimate model parameters for NHPP-based software reliability models.

Generate a list of option values.

Usage

fit.srm.nhpp(
  time = NULL,
  fault = NULL,
  type = NULL,
  te = NULL,
  data = data.frame(),
  srm.names = srm.models,
  selection = "AIC",
  control = list(),
  ...
)

srm.nhpp.options()

Arguments

time

A numeric vector for time intervals.

fault

An integer vector for the number of faults detected in time intervals. The fault detected just at the end of time interal is not counted.

type

Either 0 or 1. If 1, a fault is detected just at the end of corresponding time interval. This is used to represent the fault time data. If 0, no fault is detected at the end of interval.

te

A numeric value for the time interval from the last fault to the observation time.

data

A dataframe. The arguments; time, fault, type, te can also be selected as the columns of dataframe.

srm.names

A character vector, indicating the model (srm.models).

selection

A character string, indicating the model selection criterion. The default is "AIC". If this is NULL, the method returns the results for all model candidates.

control

A list of control parameters. See Details.

...

Other parameters.

Details

The control argument is a list that can supply any of the following components:

maxiter

An integer for the maximum number of iterations in the fitting algorithm.

reltol

A numeric value. The algorithm stops if the relative error is less than reltol and the absolute error is less than abstol.

abstol

A numeric value. The algorithm stops if the relative error is less than reltol and the absolute error is less than abstol.

stopcond

A character string. stopcond gives the criterion for the stop condition of the algorithm. Either llf or parameter is selected.

trace

A logical. If TRUE, the intermediate parameters are printed.

printsteps

An integer for print.

Value

A list with components;

initial

A vector for initial parameters.

srm

A class of NHPP. The SRM with the estiamted parameters.

llf

A numeric value for the maximum log-likelihood function.

df

An integer for degrees of freedom.

convergence

A boolean meaning the alorigthm is converged or not.

iter

An integer for the number of iterations.

aerror

A numeric value for absolute error.

rerror

A numeric value for relative error.

ctime

A numeric value for computation time.

call

The method call.

A list of options.

Examples

data(dacs)
fit.srm.nhpp(time=sys1[sys1>=0], te=-sys1[sys1<0], srm.names = c("exp"))
fit.srm.nhpp(fault=tohma, srm.names = c("llogis"))

okamumu/Rsrat documentation built on Feb. 10, 2024, 11:07 p.m.