These methods extract quantities retained on an existing Julia-backed fit through familiar R generics. They do not broaden the fitting, prediction, or inference routes described in the Julia engine vignette.
Usage
# S3 method for class 'drmTMB_julia'
coef(object, dpar = NULL, ...)
# S3 method for class 'drmTMB_julia'
fixef(object, ...)
# S3 method for class 'drmTMB_julia'
vcov(object, ...)
# S3 method for class 'drmTMB_julia'
logLik(object, ...)
# S3 method for class 'drmTMB_julia'
nobs(object, ...)
# S3 method for class 'drmTMB_julia'
df.residual(object, ...)
# S3 method for class 'drmTMB_julia'
deviance(object, ...)
# S3 method for class 'drmTMB_julia'
fitted(object, ...)
# S3 method for class 'drmTMB_julia'
residuals(object, type = c("response"), ...)
# S3 method for class 'drmTMB_julia'
sigma(object, ...)
# S3 method for class 'drmTMB_julia'
rho12(object, ...)
# S3 method for class 'drmTMB_julia_xfam'
coef(object, dpar = NULL, ...)
# S3 method for class 'drmTMB_julia_xfam'
fixef(object, ...)
# S3 method for class 'drmTMB_julia_xfam'
logLik(object, ...)
# S3 method for class 'drmTMB_julia_xfam'
nobs(object, ...)
# S3 method for class 'drmTMB_julia_xfam'
df.residual(object, ...)
# S3 method for class 'drmTMB_julia_xfam'
fitted(object, ...)
# S3 method for class 'drmTMB_julia_xfam'
residuals(object, type = c("response"), ...)Arguments
- object
An existing
drmTMB_juliafit; the_xfammethods require an existing legacydrmTMB_julia_xfamfit.- dpar
Optional coefficient block name.
NULLreturns all retained coefficient blocks; a name selects one block.- type
Residual type. Only response residuals are available.
- ...
fixef()forwards these arguments tocoef(), sodparcan select a coefficient block. The other accessors accept...for S3 compatibility and currently ignore it.
Value
coef() and fixef() return named coefficient vectors or named
lists of coefficient blocks. vcov() returns the retained covariance
value. logLik() returns a logLik object with df and nobs
attributes. nobs(), df.residual(), and deviance() return scalars;
df.residual is nobs - df and deviance is -2 * logLik. fitted()
and residuals() return stored fitted values and response residuals.
sigma() returns the stored fitted scale value(s), in the structure
retained for that Julia-backed family. rho12() returns the stored
residual-correlation vector and errors if the fit has no residual rho12
block.
Details
For drmTMB_julia_xfam, coef() may select a retained mu1,
mu2, sigma1, or sigma2 block; only blocks present on that fit are
selectable. Its logLik() object does not assert that the bridge retains
a covariance matrix. vcov() remains unavailable for _xfam fits; see
vcov.drmTMB_julia_xfam(). This topic documents extraction behavior only
and makes no additional inference or coverage claim.