model.frame.glarma | R Documentation |
model.frame
(a generic function) and its methods return a
data frame with the variables that are used in the
glarma
model.
## S3 method for class 'glarma'
model.frame(formula, ...)
formula |
An object of class |
... |
Further arguments passed to or from other methods. |
This is an S3 generic function. It extracts the response variable
vector and the matrix of the explanatory variables from the object of
class "glarma"
, and combines them as a data frame.
A data frame with the variables used in the fitted
glarma
model.
Cenanning Li <cli113@aucklanduni.ac.nz>
coef.glarma
, residuals.glarma
,
fitted.glarma
, glarma
.
data(Polio)
print(y <- Polio[, 2])
X <- as.matrix(Polio[, 3:8])
str(X)
head(X)
glarmamod <- glarma(y, X, thetaLags = c(1, 2, 5), type = "Poi",
method = "FS", residuals = "Pearson",
maxit = 100, grad = 1e-6)
str(model.frame(glarmamod))
head(model.frame(glarmamod))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.