R/df_typical.R
reference_values.RdCompute sensible values from a data set for use as a baseline
reference_values(data, n = 1, at = list())
| data | a data frame |
|---|---|
| n | number of values for specified variables: could be a single number or a list assigning a number of levels for individual variables |
| at | optional values at which to set values: a list whose names are the variables whose values are to be set. |
Variables not listed in at will be assigned levels using these principles:
Categorical variables: the most populated levels.
Quantitative variables: central quantiles, e.g. median for n=1,