Learn R Programming

dampack (version 1.0.0)

predict.metamodel: Predict from a one-way or two-way metamodel

Description

Predict from a one-way or two-way metamodel

Usage

# S3 method for metamodel
predict(object, ranges = NULL, nsamp = 100, ...)

Arguments

object

object with class "metamodel"

ranges

a named list of the form c("param" = c(0, 1), ...) that gives the ranges for the parameter of interest. If NULL, parameter values from the middle 95 from this range is determined by nsamp.

nsamp

number of samples from ranges

...

further arguments to predict (not used)

Value

a data.frame containing the outcome values predicted by the metamodel for each strategy and each combination of parameter values defined by ranges.