IAR.phi.loglik: Minus Log Likelihood of the IAR Model

Description Usage Arguments Value References See Also Examples

View source: R/IARphiloglik.R

Description

This function return the negative log likelihood of the IAR Model for a specific value of phi.

Usage

1
2
3
4
5
6
7
8
IAR.phi.loglik(
  x,
  y,
  sT,
  delta = 0,
  include.mean = "FALSE",
  standarized = "TRUE"
)

Arguments

x

A given phi coefficient of the IAR model.

y

Array with the time series observations.

sT

Array with the irregular observational times.

delta

Array with the measurements error standard deviations.

include.mean

logical; if true, the array y has zero mean; if false, y has a mean different from zero.

standarized

logical; if true, the array y was standarized; if false, y contains the raw data

Value

Value of the negative log likelihood evaluated in phi.

References

\insertRef

Eyheramendy_2018iAR

See Also

gentime, IAR.sample

Examples

1
2
3
4
5
set.seed(6714)
st<-gentime(n=100)
y<-IAR.sample(phi=0.99,n=100,st)
y<-y$series
IAR.phi.loglik(x=0.8,y=y,sT=st)

iAR documentation built on April 15, 2021, 5:06 p.m.

Related to IAR.phi.loglik in iAR...