respy.pre_processing.specification_helpers#

Module Contents#

Functions#

csv_template(n_types, n_type_covariates[, ...])

Create a template for the parameter specification.

_base_template()

_type_prob_template(n_types, n_type_covariates)

_type_shift_template(n_types)

initial_and_max_experience_template(edu_starts, ...)

lagged_choices_probs_template(n_lagged_choices, choices)

lagged_choices_covariates_template()

_base_row(index_tuple, data)

observable_prob_template(observables)

observable_coeffs_template(observables, template)

generate_obs_labels(observables, index)

respy.pre_processing.specification_helpers.csv_template(n_types, n_type_covariates, initialize_coeffs=True)[source]#

Create a template for the parameter specification.

Parameters:
n_typesint, optional

Number of types in the model. Default is one.

n_type_covariatesint, optional

Number of covariates to predict type probabilities. Can be two or three.

initialize_coeffsbool, optional

Whether coefficients are initialized with values or not. Default is True.

respy.pre_processing.specification_helpers._base_template()[source]#
respy.pre_processing.specification_helpers._type_prob_template(n_types, n_type_covariates)[source]#
respy.pre_processing.specification_helpers._type_shift_template(n_types)[source]#
respy.pre_processing.specification_helpers.initial_and_max_experience_template(edu_starts, edu_shares, edu_max)[source]#
respy.pre_processing.specification_helpers.lagged_choices_probs_template(n_lagged_choices, choices)[source]#
respy.pre_processing.specification_helpers.lagged_choices_covariates_template()[source]#
respy.pre_processing.specification_helpers._base_row(index_tuple, data)[source]#
respy.pre_processing.specification_helpers.observable_prob_template(observables)[source]#
respy.pre_processing.specification_helpers.observable_coeffs_template(observables, template)[source]#
respy.pre_processing.specification_helpers.generate_obs_labels(observables, index)[source]#