EMalg: EM algorithm for rsmd

Description Usage Arguments Value

View source: R/EM_alg.R

Description

EMalg returns the maximum likelihood estimates obtained by EM algorithm.

Usage

1
EMalg(guess, Data, distribution, L)

Arguments

guess

The initial values for Weibull parameters. The default are (0,0).

Data

Data in the format as data_to_rsmd.

distribution

The chose distribution: weibull, gamma, lnorm, llogis.

L

Number of Monte carlo simulation.

Value

A list with the following components:

values

Values of parameters in all EM algorithm iterations.

est.par

The maximum likelihood estimates of the parameters.

max.logLik

The maximum likelihood value.

n.it

Number of EM iterations.

time

Computational time.


agathasr/rsmd documentation built on May 4, 2020, 4:09 p.m.