nobs,geex-method | R Documentation |
Extract the number observations
## S4 method for signature 'geex'
nobs(object)
## S4 method for signature 'geex_summary'
nobs(object)
object |
a |
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))
nobs(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.