emfit | R Documentation |
This function provides the maximum likelihood (ML) estiamtes for a given SRM with a given data.bThe ML estimates are computed with the EM algorithm. The initial parameters for the EM algorithm are automatically decided if the flag initialize is TRUE.
emfit(
srm,
data,
initialize = TRUE,
maxiter = 2000,
reltol = 1e-06,
abstol = 0.001,
trace = FALSE,
printsteps = 50,
...
)
srm |
A model. |
data |
A faultdata. |
initialize |
Either TRUE or FALSE. If TRUE, the model parameters are initilized with a given data before executing the fitting algorithm. |
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. |
trace |
A logical. If TRUE, the intermediate parameters are printed. |
printsteps |
An integer for print. |
... |
A list for other parameters which are sent to the |
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(dacs)
data <- faultdata(fault=sys1g)
emfit(srm("exp"), data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.