Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Get1G

Internal Utility Function: BLUE Mean


Description

This function is not normally used directly by the user. It is used in the exact mle for mean.

Usage

Get1G(phi, n)

Arguments

phi

a vector of AR coefficients

n

length of series

Value

A vector used in the mle computation of the mean.

Author(s)

A.I. McLeod

See Also

Examples

#Simulate an AR(2) and compute the exact mle for mean
set.seed(7771111)
n<-50
phi<-c(1.8,-0.9)
z<-SimulateGaussianAR(phi, n)
g1<-Get1G(phi, length(z))
sum(g1*z)/sum(g1)
#sample mean
mean(z)
#more directly with getArMu
GetARMeanMLE(z,phi)

FitAR

Subset AR Model Fitting

v1.94
GPL (>= 2)
Authors
A.I. McLeod, Ying Zhang and Changjiang Xu
Initial release
2013-03-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.