scsim: inference of simulated future scenarios - scsim()

View source: R/SimFunctions.R

scsimR Documentation

inference of simulated future scenarios – scsim()

Description

Function to infer simulated future scenarios from a RepGrid and an Impgrid.

Usage

scsim(
  grid,
  imp,
  init.vec = actvector(grid),
  act.vec,
  iter = 30,
  e = 0.001,
  force.conv = FALSE
)

Arguments

grid

Subject's RepGrid. It must be an S4 object imported by the importgrid function.

imp

Subject's ImpGrid. It must be an S4 object imported by the importimp function.

act.vec

Activation vector created via actvector function. The default vector is the first element of the RepGrid.

iter

Number of iterations to infer.

ideal

Column number representing the position of the Ideal-Self in the RepGrid. By default the last column of the RepGrid is set.

infer

Propagation function for scenario inference. More information in ?propfunctions.

thr

Threshold function for scenario inference. More information in ?thrfunctions.

lambda

Lambda value of the threshold function. Only applicable in sigmoidal or hyperbolic tangent threshold function

Value

Return a list with two entries. The $values entry contains in rows each of the scenario vectors according to the number of iterations. And the $convergence entry contains the number of the iteration where the Fuzzy Cognitive Map is stabilised.


GICUNED/GridFCM documentation built on Feb. 23, 2023, 9:03 a.m.