Learn R Programming

statisticalModeling (version 0.3.0)

reference_values: Compute sensible values from a data set for use as a baseline

Description

Compute sensible values from a data set for use as a baseline

Usage

reference_values(data, n = 1, at = list())

Arguments

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.

Details

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, 0.33 and 0.67 for n=2, and so on.