respy.tests.test_method_of_simulated_moments

Test the msm interface of respy.

Module Contents

Functions

msm_args()

test_msm_zero(msm_args, return_scalar)

Test whether MSM function successfully returns 0 for true parameter vector.

test_msm_nonzero(msm_args)

MSM function successfully returns a value larger than 0 for different deviations

test_randomness_msm(model_or_seed)

test_return_simulated_moments_for_msm(msm_args)

Return_simulated_moments.

test_return_comparison_plot_data_for_msm(msm_args)

Return_comparison_plot_data.

test_multiple_returns_msm(msm_args)

Raise error if moments and comparison plot data is requested.

_calc_choice_freq(df)

_calc_wage_mean(df)

_replace_nans(df)

respy.tests.test_method_of_simulated_moments.msm_args()[source]
respy.tests.test_method_of_simulated_moments.test_msm_zero(msm_args, return_scalar)[source]

Test whether MSM function successfully returns 0 for true parameter vector.

respy.tests.test_method_of_simulated_moments.test_msm_nonzero(msm_args)[source]

MSM function successfully returns a value larger than 0 for different deviations in the simulated set.

respy.tests.test_method_of_simulated_moments.test_randomness_msm(model_or_seed)[source]
respy.tests.test_method_of_simulated_moments.test_return_simulated_moments_for_msm(msm_args)[source]

Return_simulated_moments.

respy.tests.test_method_of_simulated_moments.test_return_comparison_plot_data_for_msm(msm_args)[source]

Return_comparison_plot_data.

respy.tests.test_method_of_simulated_moments.test_multiple_returns_msm(msm_args)[source]

Raise error if moments and comparison plot data is requested.

respy.tests.test_method_of_simulated_moments._calc_choice_freq(df)[source]
respy.tests.test_method_of_simulated_moments._calc_wage_mean(df)[source]
respy.tests.test_method_of_simulated_moments._replace_nans(df)[source]