Extract the number of response values from bru
and related objects.
Usage
bru_response_size(object)
# S3 method for class 'bru_like'
bru_response_size(object)
# S3 method for class 'bru_like_list'
bru_response_size(object)
# S3 method for class 'bru_info'
bru_response_size(object)
# S3 method for class 'bru'
bru_response_size(object)
Methods (by class)
bru_response_size(bru_like)
: Extract the number of observations from abru_like
object.bru_response_size(bru_like_list)
: Extract the number of observations from abru_like_list
object.bru_response_size(bru_info)
: Extract the number of observations from abru_info
object.bru_response_size(bru)
: Extract the number of observations from abru
object.
Examples
bru_response_size(
bru_obs(y ~ 1, data = data.frame(y = rnorm(10)), family = "gaussian")
)
#> [1] 10