smoothParameter {babsim.hospital}R Documentation

Smooth a parameter set using another parameter set

Description

Calculate the average of two parameter sets to smooth out any local anomalies. Mostly useful to smooth out a local (say OBK) parameter set using a global one (say NRW).

Technically this function calculates (1-weight) * para + weight * other ensuring that the names etc. of para are preserved.

Usage

smoothParameter(para, other, weight = 0.2)

Arguments

para

Parameter set to smooth

other

Other parameters to average in

weight

Weight of other parameters

Value

Weighted parameter set


[Package babsim.hospital version 11.8.8 Index]