View source: R/offset_values_extract.R
offset_values_extract | R Documentation |
Extracts offset values by applying a formula with an offset term to a data frame.
offset_values_extract(formula, data)
formula |
An R Formula |
data |
Data frame |
Vector containing offset values
stats::offset
,
stats::model.offset
#############################################################################
# EXAMPLE 1: Toy example for extraction of offset values
#############################################################################
data(data.ma01, package="miceadds")
dat <- data.ma01
dat1 <- mdmb::offset_values_extract( formula=~ migrant + offset(books), data=dat )
dat1[1:5]
## [1] 6 6 5 2 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.