fitcar1: Fit AR(1) model with censoring and missing values

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

View source: R/fitcar1.R

Description

later

Usage

1
fitcar1(z, cL = -Inf, cU = Inf, verboseQ = FALSE)

Arguments

z

a time series vector including possible NA values

cL

lower censor point

cU

upper censor point

verboseQ

show iterations

Details

later

Value

vector of length 3 with the estimates of mean, ar-parameter and the optimized log-likelihood

Note

later

Author(s)

A. I. McLeod

References

later

See Also

fitar1

Examples

1
2
3
 z <- arima.sim(model=list(ar=0.8), n=100)
 z[50] <- NA
 fitcar1(z)

Example output

[1]   0.2113476   0.7522052 -16.6679101

cents documentation built on May 1, 2019, 8:19 p.m.

Related to fitcar1 in cents...