| GPvam-methods | R Documentation |
Standard model methods expose the unrounded estimates used by the fitting
algorithm. The displayed parameters table is rounded for presentation.
## S3 method for class 'GPvam'
coef(object, ...)
## S3 method for class 'GPvam'
vcov(object, ...)
## S3 method for class 'GPvam'
fitted(object, type = c("conditional", "marginal"), ...)
## S3 method for class 'GPvam'
residuals(object, type = c("conditional", "marginal", "scaled"), ...)
## S3 method for class 'GPvam'
nobs(object, ...)
## S3 method for class 'GPvam'
logLik(object, ...)
object |
A fitted |
... |
Further arguments, currently unused. |
type |
For |
logLik returns the likelihood criterion actually fitted (ML or REML).
It does not refit or convert between likelihood types. The parameter-count
convention agrees with common R mixed-model packages. Compare REML likelihoods
or information criteria only for models with the same fixed-effect design and
the same observations; ML and REML criteria are not directly comparable.
These methods apply to objects fitted by GPvam 3.3-0 or later, which retain full-precision matrices and an input-row map for all model settings.
coef returns a named fixed-effect coefficient vector;
vcov returns its estimated covariance matrix. fitted and
residuals return named numeric vectors in the order of the input rows
with observed responses. Rows with missing responses are omitted.
nobs returns the number of observed responses. logLik returns
an object of class logLik, with degrees of freedom equal to the
number of fixed-effect and covariance/persistence parameters.
data(vam_data)
fit <- GPvam(vam_data, persistence = "CP", verbose = FALSE)
coef(fit)
vcov(fit)
head(fitted(fit))
head(residuals(fit, type = "marginal"))
logLik(fit)
nobs(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.