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_dict
dictionary
- ev_known
numpy.array
- costs
numpy.array
See ref:costs
- trans_mat
numpy.array
See ref:trans_mat
- init_dict
- Returns
- df
pandas.DataFrame
See The simulation
- df