Learn R Programming

glarma (version 1.4-0)

nobs.glarma: Extract the Number of Observations from a GLARMA Model Fit

Description

An accessor function used to extract the number of observations from a "glarma" object.

Usage

"nobs"(object, ...)

Arguments

object
An object of class "glarma", obtained from a call to glarma.
...
Further arguments passed to or from other methods.

Value

The number of observations extracted from the object object.

See Also

coef.glarma, residuals.glarma, fitted.glarma, glarma.

Examples

Run this code
### Example from Davis, Dunsmuir Wang (1999)
## MA(1,2,5), Pearson Residuals, Fisher Scoring
data(Polio)
y <- Polio[, 2]
X <- as.matrix(Polio[, 3:8])
glarmamod <- glarma(y, X, thetaLags = c(1,2,5), type = "Poi", method = "FS",
                    residuals = "Pearson", maxit = 100, grad = 2.22e-16)

nobs(glarmamod)

Run the code above in your browser using DataLab