View source: R/summary.estimate.R
| c.summary.estimate | R Documentation |
When all arguments are summary.estimate objects, they are merged into a
single summary.estimate object. When some arguments are not
summary.estimate objects but are named numeric scalars/vectors, an object
of class summary.estimate is returned with an additional extra attribute
that contains the provided numeric scalars/vectors. 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 'summary.estimate'
c(...)
... |
|
e1 <- estimate(coef = 1, IC = scale(rnorm(10)), id = 1:10, labels = "a1")
e2 <- estimate(coef = 2, IC = scale(rnorm(10)), id = 1:10, labels = "a2")
# concatenating two summary.estimate objects
c(e1, e2)
# concatenating one summary.estimate object with one numerical variable
ss <- c(summary(e1), niter = 2)
print(ss)
attributes(ss)$extra
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.