Build formula and run linear regression for metamodel
mm_run_reg(analysis, dep, params, dat, type, poly.order, k)
either "oneway" or "twoway"
dependent variable in regression
string vector with the name(s) of the parameter of interest. Defaults to all.
data to use in regression
type of metamodel
order of polynomial for the linear regression metamodel. Default: 2
the dimension of the basis used to represent the smooth term.
The default depends on the number of variables that the smooth is a
function of. k
should not be less than the dimension of the
null space of the penalty for the term (see
null.space.dimension
), but will be reset if
it is. See choose.k
for further information.
all params in PSA
a statistical metamodel