nobs.glarma {glarma}R Documentation

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

## S3 method for class 'glarma'
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.

Author(s)

"Cenanning Li" <cli113@aucklanduni.ac.nz>

See Also

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

Examples

### 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)

[Package glarma version 1.6-0 Index]