Creates a fitted model object from MLE results. This is primarily
an internal constructor; users typically obtain femtofit objects
from the fit() function.
Usage
femtofit(
coefficients,
vcov,
loglik,
hessian = NULL,
gradient = NULL,
converged = TRUE,
iterations = NA_integer_,
nobs = NULL,
call = NULL,
predict_fn = NULL
)
# S3 method for class 'femtofit'
coef(object, ...)
# S3 method for class 'femtofit'
vcov(object, ...)
# S3 method for class 'femtofit'
confint(object, parm, level = 0.95, ...)
# S3 method for class 'femtofit'
logLik(object, ...)
# S3 method for class 'femtofit'
nobs(object, ...)
# S3 method for class 'femtofit'
print(x, ...)
# S3 method for class 'femtofit'
summary(object, ...)
# S3 method for class 'summary.femtofit'
print(x, ...)Arguments
- coefficients
Named numeric vector of parameter estimates.
- vcov
Variance-covariance matrix (named).
- loglik
Log-likelihood value at the MLE.
- hessian
Hessian matrix at the MLE.
- gradient
Gradient vector at the MLE (should be near zero).
- converged
Logical indicating convergence.
- iterations
Number of iterations performed.
- nobs
Number of observations (optional).
- call
The original function call (optional).
- predict_fn
Optional prediction function (optional).
- object
A
femtofitobject.- ...
Additional arguments (ignored).
- parm
Parameter names or indices (default: all parameters).
- level
Confidence level (default: 0.95).
- x
A
femtofitobject.
Methods (by generic)
coef(femtofit): Extract coefficient estimatesvcov(femtofit): Extract variance-covariance matrixconfint(femtofit): Compute confidence intervalslogLik(femtofit): Extract log-likelihood (enables AIC/BIC)nobs(femtofit): Number of observationsprint(femtofit): Print fitted modelsummary(femtofit): Summary of fitted model