Learn R Programming

FGN (version 2.0-12)

GetFitPLS: Fit PLS Time Series Model

Description

Exact maximum likelihood estimation of the decay parameter p in PLS model. In this model p = alpha.

Usage

GetFitPLS(z, MeanZeroQ = FALSE, algorithm=c("emle", "wmle"), ciQ=FALSE)

Arguments

z
time series data vector
MeanZeroQ
optional argument, default is MeanZeroQ=FALSE. Set to TRUE if the mean is known to be zero
algorithm
"emle" for exact MLE or "wmle" for Whittle method
ciQ
TRUE or FALSE according as 95 percent confidence interval computed and plotted

Value

a list with four/five elements:
p
MLE for p
Loglikelihood
value of the maximized loglikelihood
alpha
MLE for alpha
algorithm
either "emle" or "wmle"
ci
95 percent confidence interval for p

See Also

GetFitFD

Examples

Run this code
#Example 1
#fit Gaussian White Noise, alpha=1
z<-rnorm(500, 100, 10)
GetFitPLS(z)

#Example 2
#estimate alpha for NileMin series
data(NileMin)
GetFitPLS(NileMin)

Run the code above in your browser using DataLab