summary-methods: Object Summaries

summary,geex-methodR Documentation

Object Summaries

Description

Object Summaries

Usage

## S4 method for signature 'geex'
summary(object, keep_data = TRUE, keep_args = TRUE)

Arguments

object

a geex object

keep_data

keep the original data or not

keep_args

keep the outer_args and inner_args passed to estFUN or not

Examples

library(geepack)
data('ohio')
glmfit  <- glm(resp ~ age, data = ohio,
              family = binomial(link = "logit"))
example_ee <- function(data, model){
  f <- grab_psiFUN(model, data)
  function(theta){
    f(theta)
  }
}
z  <- m_estimate(
estFUN = example_ee,
data = ohio,
compute_roots = FALSE,
units = 'id',
roots = coef(glmfit),
outer_args = list(model = glmfit))

object.size(z)
object.size(summary(z))
object.size(summary(z, keep_data = FALSE))
object.size(summary(z, keep_data = FALSE, keep_args = FALSE))

geex documentation built on Aug. 8, 2022, 5:05 p.m.