emmeans expects accepts a weights argument to specify the denominator for mean calculations. This function will calculate these weights from the frequency of the emmeans levels from a new dataset.
Arguments with which emmeans is to be called are passed to this function
which will call
weights = 'show.levels' in
order to determine the levels over which weights are calculated. It will
then use the passed
data to evaluate frequencies for those weights.
arguments with which emmeans will be called
a dataset over which the weights should be calculated as level frequencies.
whether additional information should be printed to console
The same arguments passed through
emmeans_args with the
weights parameter specified by the frequencies of occurence in the
data variable, or the
emmeans_args$data list item if no data
was included (default behavior of
Doug Kelkhoff [email protected]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.