y_wobs_offs | R Documentation |
A helper function for extracting response values, observation weights, and
offsets from a dataset. It is designed for use in the extract_model_data
function of custom reference model objects (see init_refmodel()
).
y_wobs_offs(newdata, wrhs = NULL, orhs = NULL, resp_form)
newdata |
The |
wrhs |
Either a right-hand side formula consisting only of the variable
in |
orhs |
Either a right-hand side formula consisting only of the variable
in |
resp_form |
If this is a formula, then the second element of this
formula (if the formula is a standard formula with both left-hand and
right-hand side, then its second element is the left-hand side; if the
formula is a right-hand side formula, then its second element is the
right-hand side) will be extracted from |
A list
with elements y
, weights
, and offset
, each being a
numeric vector containing the data for the response, the observation
weights, and the offsets, respectively. An exception is that y
may also
be NULL
(depending on argument resp_form
), a non-numeric vector, or a
factor
.
init_refmodel()
# For an example, see `?init_refmodel`.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.