Learn R Programming

DLMtool (version 5.2)

makeMeanMP: Create an MP that averages the results of multiple MPs

Description

This function takes a character string of MP names and returns a function of classMP that calculates the average of the management recommendations from the individual MPs.

Usage

makeMeanMP(MPs)

Arguments

MPs

A vector of MPs names

Value

A function of class MP

Examples

Run this code
# NOT RUN {
MeanMP <- makeMeanMP(c("AvC", "DCAC"))
MSE <- runMSE(DLMtool::testOM, MPs=c("AvC", "DCAC", "MeanMP"))
Tplot2(MSE)

MeanMP <- makeMeanMP(c("matlenlim", "matlenlim2")) 
Data <- DLMtool::SimulatedData
matlenlim(1, Data)
matlenlim2(1, Data)
MeanMP(1, Data)
# }

Run the code above in your browser using DataLab