ruspy.simulation.simulation.simulate

ruspy.simulation.simulation.simulate(init_dict, ev_known, costs, trans_mat)[source]

Simulating the decision process of Harold Zurcher.

The main function to simulate a decision process in the theoretical framework of John Rust’s 1987 paper. It reads the inputs from the initiation dictionary and then calls the main subfunction with all the relevant parameters.

Parameters
init_dictdictionary

See Simulation initialization dictionary

ev_knownnumpy.array

See Expected value of maintenance

costsnumpy.array

See ref:costs

trans_matnumpy.array

See ref:trans_mat

Returns
dfpandas.DataFrame

See The simulation