logLik
extracts the log-likelihood (exact or approximated).
fitted
extracts fitted values (see fitted.values
).
fixef
extracts the fixed effects coefficients, $\beta$.
ranef
extracts the predicted random effects, $u$.
vcov
returns the variance-covariance matrix of the fixed-effects coefficients.
Corr
returns a correlation matrix of random effects (with restrictions, see Details).
getDistMat
extracts a distance matrix for a Matérn correlation model.## S3 method for class 'HLfit':
logLik(object,which,...)
## S3 method for class 'HLfit':
fitted(object,...)
## S3 method for class 'HLfit':
fixef(object,...)## S3 method for class 'HLfit':
ranef(object,...)
## S3 method for class 'HLfit':
vcov(object,...)
## S3 method for class 'HLfit':
deviance(object,...)
getDistMat(object,scaled=FALSE)
Corr(object,...)
dev_resids(object,...)
APHLs
list to return. The default depends on the fitting method.In particular, if it was REML or one of its variants, the function returns the log restricted likelihood (exact or approximated).FALSE
, the function ignores the scale parameter $rho$ and returns unscaled distance.logLik
), vectors (most cases), matrices (for vcov
), matrices or dist objects (for getDistMat
). ranef
returns a vector with attributes, which inherits from class ranef
which has its own (undocumented) print
method.
dev_resids
returns a vector of deviance residuals. deviance
returns the sum of these deviance residuals.
Corr
currently returns the correlation matrix of the random effects which are described as Lv (see HLfit
)data(wafers)
m1 <- HLfit(y ~X1+X2+(1|batch),
resid.formula = ~ 1 ,data=wafers,HLmethod="ML")
fixef(m1)
vcov(m1)
ranef(m1)
Run the code above in your browser using DataLab