Convenience function for computing density values for plotting.

compute_density_values(data, group_var, parameter, values)

Arguments

data

A dataframe that contains the parameter estimates.

group_var

A group variable that specifies the attributes to group by. By default, this would likely be the term attribute, but can contain more than one attribute.

parameter

The attribute that represents the parameter estimate.

values

A list of numeric vectors that specifies the values for which the density values are computed for.