cond
a logical value indicating whether unconditional
(default) or conditional (choose cond = TRUE
) prediction
should be performed. If you choose cond = TRUE
, setx
will coerce fn = NULL
and ignore the additional arguments in
...
. If cond = TRUE
and data = NULL
,
setx
will prompt you for a data frame.
...
user-defined values of specific variables for overwriting the
default values set by the function fn
. For example, adding
var1 = mean(data\$var1)
or x1 = 12
explicitly sets the value
of x1
to 12. In addition, you may specify one explanatory variable
as a range of values, creating one observation for every unique value in
the range of values