This S3 method allows you to retrieve either the number of
observations or number of entities in the data used to fit wbm objects.
Usage
# S3 method for class 'wbm'
nobs(object, entities = TRUE, ...)Examples
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
model <- wbm(lwage ~ lag(union) + wks, data = wages)
nobs(model)
#> [1] 595