View source: R/estimate_calculus.R
| c.estimate | R Documentation |
When all arguments are estimate objects, they are merged into a single
estimate object. When some arguments are not estimate objects but are
named numeric scalars/vectors, the merged estimate object is returned
with an "extra" attribute containing the provided values. This is useful
for bundling auxiliary per-iteration information (e.g., convergence status)
alongside an estimate for use with sim.default().
## S3 method for class 'estimate'
c(..., as.list = FALSE)
... |
|
as.list |
if TRUE the returned object will be of class |
arguments drop.ic, paired, sep are passed to merge.estimate
An estimate object. If extra named numeric values were provided,
the result carries an "extra" attribute (a named numeric vector).
sim.default() merge.estimate()
e <- estimate(coef = c(a = 1, b = 2), vcov = diag(2) * 0.1)
# Bundle estimate with extra information
res <- c(e, converged = 1, niter = 10)
attr(res, "extra")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.