Learn R Programming

GEC (version 0.1.0)

eep_optim: The Wrapper Function that Returns the Final Estimates from Maximum Likelihood Estimation for EEP.

Description

This function serves as a wrapper that returns the final estimates of theta, eta, and the corresponding density change point

Usage

eep_optim(data, init = c(1, 1), lower_bound = c(0.01, 0.01))

Value

A data frame with 1 row and 3 columns that contains the MLE of theta, eta, and the predicted density change point.

Arguments

data

Observations.

init

The vector of initial values of the model parameters. The default is c(1,1).

lower_bound

The vector of the lower bound for the parameters. The default is c(0.01,0.01).

Details

eep_optim

Examples

Run this code
eep_optim(seq(1:100))

Run the code above in your browser using DataLab