compute_mean_risks: Compute an average risk as a function of credit spent

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/compute_mean_risks.R

Description

Used to summarize information contained in lists given by read_knobjs.

Usage

1

Arguments

mean_risks

A list of tables as given by read_knobjs.

legend

A label to be associated to the output data frame.

Details

Summarizes results in a data frame for further ploting.

Value

A data frame with four columns: cost, the budget spent, numerical, risk, the associated risk, numerical, type, given by the legend argument and chain which is an integer associated to each table in the list argument.

Author(s)

Edouard Pauwels

See Also

read_knobjs

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
	data(knobjs)
	sapply(	
		1:length(knobjs),
		function(k){
			assign(names(knobjs)[k], knobjs[[k]], envir = .GlobalEnv)
		}
	)

	data(exps)
	temp <- read_knobjs(paste("knobjActMult", 1:10, sep=""))
	mean_risks <- compute_mean_risks(temp, "A title")
	mean_risks

pauwels2014 documentation built on May 1, 2019, 6:29 p.m.