comp.scenarios: Scenario comparison

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

Description

The equilibrium values of two scenarios are compared.

Usage

1
comp.scenarios(scenario1, scenario2)

Arguments

scenario1

Dataframe output from nochanges.scenario or changes.scenario.

scenario2

Dataframe output from nochanges.scenario or changes.scenario.

Value

The difference between the equilibrium values of the two scenarios are given in a data frame along with the concept names, the scenario 1 values, the scenario 2 values, and the percent difference.

Note

The scenarios must be scenarios of fuzzy cognitive maps with the same concepts, though not neccesarily the same edges.

Author(s)

Shaun Turney

See Also

changes.scenario nochanges.scenario

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
matrix = matrix(nrow=7,ncol=7)
matrix[1,] = c(0,-0.5,0,0,1,0,1)
matrix[2,] = c(1,0,1,0.2,0,0,0.6)
matrix[3,] = c(0,1,0,0,0,0,0)
matrix[4,] = c(0.6,0,0,1,0,0,0.1)
matrix[5,] = c(0,0.5,0,0,1,0,-0.6) 
matrix[6,] = c(0,0,-1,0,0,0,0)
matrix[7,] = c(0,0,0,-0.5,0,0,1)
concept.names = c("A","B","C","D","E","F","G")

scenario1 = nochanges.scenario(matrix,iter=25,concept.names)

scenario2 = changes.scenario(matrix,concept.names,iter=25,set.concepts=c("B"),set.values=c(0.5))

comp.scenarios(scenario1,scenario2)

Example output

  Concept Scenario_1 Scenario_2   Difference Percent_change
1       A  0.8994055  0.8602006 -0.039204975     -4.3589875
2       B  0.8250885  0.5000000 -0.325088527    -39.4004421
3       C  0.7049527  0.6111360 -0.093816710    -13.3082270
4       D  0.7769047  0.7612604 -0.015644288     -2.0136688
5       E  0.9417444  0.9392749 -0.002469587     -0.2622353
6       F  0.6590461  0.6590461  0.000000000      0.0000000
7       G  0.9422167  0.9258372 -0.016379494     -1.7383999

FCMapper documentation built on May 2, 2019, 3:17 p.m.