ruspy.simulation.simulation.simulate

ruspy.simulation.simulation.simulate(init_dict, ev_known, costs, trans_mat, reduced_data=None)[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.ndarray

See Expected value of maintenance

costsnumpy.ndarray

See ref:costs

trans_matnumpy.ndarray

See ref:trans_mat

reduced_datapython:str

Keyword for simulation with reduced data usage.

Returns
dfpandas.DataFrame

See The simulation