set_rest_at_median: Vary one variable and set the rest at their medians

Description Usage Arguments Details

Description

set_rest_at_median returns a list of the median of every variables with onve variable taking on a given range of values. This function is useful for generating matrices for computing quantities of interst, such as predicted probabilities, risk-ratios, and first-differences.

Usage

1
set_rest_at_median(formula, data, var_name, var_values)

Arguments

formula

A model formula.

data

A data frame.

var_name

The name of the variable to be varied.

var_values

The values that var_name should take.

Details

Vary one variable and set the rest at their medians


carlislerainey/separation documentation built on May 13, 2019, 12:45 p.m.