View source: R/margins_for_rake.R
margins_for_rake | R Documentation |
This function can be used to construct the sample.margins
and
population.margins
arguments for rake
.
margins_for_rake(me_vars, int_vars, interact_with, design)
me_vars |
character vector of variable names for main effects. |
int_vars |
character vector naming variables to be interacted with
|
interact_with |
character string naming the variable with which
the variables in |
design |
survey object. See |
A list with components samp
and pop
. samp
is a
list of formulas describing sample margins. pop
is a list of
data.frames and tables describing the corresponding population margins. See
the description of the sample.margins
and population.margins
arguments for rake
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.