sGLM | R Documentation |
Class for software reliability model with s-metrics
R6Class
object.
Object of R6Class
with methods for software reliability model with s-metrics.
srms
A list for srms.
coef
A numeric vector for the regression coefficients.
faults
A numeric vector of the number of total faults.
df
An integer for the degrees of freedom of the model (total).
data
Data to esimate parameters.
print()
This method prints model parameters.
omega()
This method returns a vector of the number of total faults.
coefficients()
This method returns a vector of the coefficients for s-metrics.
init_params(data)
This method changes the model parameters based on a given data. This is used to set the initial value for the fitting algorithm.
set_params(params)
This method sets the model parameters.
set_data(data)
This method sets data.
em(params, data)
This method returns a list with an updated parameter vector (param), absolute difference of parameter vector (pdiff), log-likelihood function for a given parameter vector (llf), the number of total faults (total) via EM algorithm for a given data.
llf(data)
This method returns the log-likelihood function for a given data.
print()
sGLM$print(digits = max(3, getOption("digits") - 3), ...)
omega()
sGLM$omega()
coefficients()
sGLM$coefficients()
new()
sGLM$new(srms, names = NULL, coefficients = c())
init_params()
sGLM$init_params(data)
set_params()
sGLM$set_params(params)
set_data()
sGLM$set_data(data)
em()
sGLM$em(params, data, ...)
llf()
sGLM$llf(data)
comp_error()
sGLM$comp_error(res0, res1)
clone()
The objects of this class are cloneable with this method.
sGLM$clone(deep = FALSE)
deep
Whether to make a deep clone.
msrat::sGLM
-> sGLM.log
clone()
The objects of this class are cloneable with this method.
sGLM.log$clone(deep = FALSE)
deep
Whether to make a deep clone.
msrat::sGLM
-> sGLM.identity
clone()
The objects of this class are cloneable with this method.
sGLM.identity$clone(deep = FALSE)
deep
Whether to make a deep clone.
msrat::sGLM
-> sGLM.penalized
set_penalized()
sGLM.penalized$set_penalized(lambda, alpha = 1)
em()
sGLM.penalized$em(params, data, ...)
llf()
sGLM.penalized$llf(data)
comp_error()
sGLM.penalized$comp_error(res0, res1)
clone()
The objects of this class are cloneable with this method.
sGLM.penalized$clone(deep = FALSE)
deep
Whether to make a deep clone.
msrat::sGLM
-> msrat::sGLM.penalized
-> sGLM.penalized.log
clone()
The objects of this class are cloneable with this method.
sGLM.penalized.log$clone(deep = FALSE)
deep
Whether to make a deep clone.
msrat::sGLM
-> msrat::sGLM.penalized
-> sGLM.penalized.identity
clone()
The objects of this class are cloneable with this method.
sGLM.penalized.identity$clone(deep = FALSE)
deep
Whether to make a deep clone.
fit.srm.poireg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.