fit.srm.poireg | R Documentation |
Estimate model parameters for s-metrics-based software reliability models.
Generate a list of option values.
fit.srm.poireg(
formula,
data,
srms,
names = NULL,
linkfun = "log",
offset = NULL,
control = list(),
...
)
srm.poireg.options()
fit.srm.poireg.penalized(
formula,
data,
srms,
names = NULL,
linkfun = "log",
offset = NULL,
control = list(),
lambda = 1,
alpha = 1,
...
)
formula |
An object of class formula. A symbolic description of the model to be fitted. The output variable should be the column for the number of faults. |
data |
A dataframe for s-metrics. |
srms |
A list of SRMs. The classes of NHPP, dGLM and results of fit.srm.nhpp and fit.srm.logit are allowed. |
names |
A list of character strings to indicate the project names. |
linkfun |
A character string indicating a linkfunction. See Details. |
offset |
An integer. This can be used to specify an a priori known component to be included in the linear predictor during fitting. This should be NULL or a numeric vector of length equal to the number of cases. |
control |
A list of control parameters. See Details. |
... |
Other parameters. |
lambda |
A numeric value for the penalized parameter. |
alpha |
A numeric value to select from L1 to L2 norm |
The control argument is a list that can supply any of the following components:
An integer for the maximum number of iterations in the fitting algorithm.
A numeric value. The algorithm stops if the relative error is less than reltol and the absolute error is less than abstol.
A numeric value. The algorithm stops if the relative error is less than reltol and the absolute error is less than abstol.
A logical. If TRUE, the intermediate parameters are printed.
An integer for print.
The linkfun argument can take the following strings:
A log function.
An identity function.
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. |
data |
The data used. |
linkfun |
The linkfunction used. |
formula |
The formula supplied. |
ctime |
A numeric value for computation time. |
terms |
The terms object used. |
call |
The method call. |
A list of options.
data(tomcat5)
data.tomcat5 <- list(catalina=tomcat5.catalina,
connector=tomcat5.connector,
jasper=tomcat5.jasper,
servlets=tomcat5.servlets,
tester=tomcat5.tester,
webapps=tomcat5.webapps)
results.tomcat5 <- lapply(data.tomcat5,
function(d) Rsrat::fit.srm.nhpp(time=d$time, fault=d$fault, srm.names=c("gamma")))
fit.srm.poireg(formula=~LOC+St, data=tomcat5.smet, srms=results.tomcat5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.