Description Usage Arguments Details Value See Also
Extracts the weighted and unweighted cell predictions from the output of
mrp_model
and merges it with a data frame. The data frame passed to
data
should be the same object used in the call to mrp_model
.
For mrp_grp
, adds the 'grp' column to the survey data for merging.
1 2 3 |
data |
A data frame containing the original survey data to merge with the predicted cell weights. |
mrp.fit |
An object of class |
by |
character: The column name to merge by. Defaults to 'grp', which is
the default variable for indexing cell interactions produced by
|
... |
Other agruments passed on to |
The resulting data frame will have value labels copied from the original data
object using copy_lev
.
For mrp_merge
, a data frame with merged MRP cell predictions.
For mrp_grp
, a character vector containing the various combinations
of values from the variables used in the underlying formula passed to
model
in mrp_table
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.