averageResponse: Calculate the weighted average of estimated response values

Description Usage Arguments Value

View source: R/modelAveraging.R

Description

Calculate the weighted average of estimated response values

Usage

1
averageResponse(weights, dose, modelResults, groupIndex = 1)

Arguments

weights

numeric vector, estimated weights as returned by calculateWeights()

dose

numeric vector, dose values at which response values are estimated

modelResults

list, with results for each model, same length as weights. For each model a list with at least model.ans, regr.par, CES and ces.ans; these are by default included in result from f.proast(). Eventually contains also fct1 and fct2 if factors are included for the model parameters.

groupIndex

integer, index for covariate combination of interest; default value is 1; if NA average response for all groups is returned

Value

numeric (vector), averaged response value at given dose for group(s) of interest


alfcrisci/bmdModeling documentation built on May 28, 2019, 12:32 a.m.