mem.spec: Maximum-entropy spectral estimate

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/BTMEM.R

Description

Computes the maximum-entropy spectral estimate

Usage

1
 mem.spec(y,ord=5,...)

Arguments

y

time series.

ord

maximum order of the AR series to be estimated for y.

...

Additional arguments passed to spec.ar

Details

Uses spec.ar to compute the maximum-entropy estimate using Burg's method. See spec.ar

Value

sp

Description of 'comp1'

Note

~~further notes~~

Author(s)

Patrick Crutcher

References

~put references to the literature/web site here ~

See Also

~~objects to See Also as help, ~~~

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as

  function(y, ord,... ) {
	
	y <- y - mean(y)
	T <- length(y)
	if ( ord >= T ) stop("The length of the window is longer than the data")

	sp<-spec.ar(y, method="burg",aic=FALSE, order=ord,...)
	return(sp)
}

Example output

function (y, ord, ...) 
{
    y <- y - mean(y)
    T <- length(y)
    if (ord >= T) 
        stop("The length of the window is longer than the data")
    sp <- spec.ar(y, method = "burg", aic = FALSE, order = ord, 
        ...)
    return(sp)
}

ssa documentation built on May 2, 2019, 5:54 p.m.

Related to mem.spec in ssa...