pair_formation_parameters
PairFormationParameters
Bases: Updateable
Source code in emodpy_hiv/demographics/pair_formation_parameters.py
__init__(Assortivity=None, Formation_Rate_Constant=None, Age_of_First_Bin_Edge_Female=None, Age_of_First_Bin_Edge_Male=None, Extra_Relational_Rate_Ratio_Female=None, Extra_Relational_Rate_Ratio_Male=None, Number_Age_Bins_Female=None, Number_Age_Bins_Male=None, Update_Period=None, Years_Between_Bin_Edges_Female=None, Years_Between_Bin_Edges_Male=None, Joint_Probabilities=None)
PairFormationParameters defines the rate at which new relationships are formed and partnership preference using the main pair forming algorithm that finds potential partners based on their age and the Joint_Probabilities matrix.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Assortivity
|
Assortivity
|
Defines how people will preferentially form pairs based on their membership in different groups. |
None
|
Formation_Rate_Constant
|
float
|
If Formation_Rate_Type is set to CONSTANT, the number of new relationships per day for this relationship type. |
None
|
Age_of_First_Bin_Edge_Female
|
int
|
The maximum age for the first age bin when dividing the female population into age bins for pair formation. |
None
|
Age_of_First_Bin_Edge_Male
|
int
|
The maximum age for the first age bin when dividing the male population into age bins for pair formation. |
None
|
Extra_Relational_Rate_Ratio_Female
|
int
|
For women, the rate ratio for having extra-relational sex for this relationship type, where the ratio is the event over the period of time defined in Update_Period. |
None
|
Extra_Relational_Rate_Ratio_Male
|
int
|
For males, the rate ratio for having extra-relational sex for this relationship type, where the ratio is the event over the period of time defined in Update_Period. |
None
|
Number_Age_Bins_Female
|
int
|
The number of age bins to divide the female population into for pair formation. |
None
|
Number_Age_Bins_Male
|
int
|
The number of age bins to divide the male population into for pair formation. |
None
|
Update_Period
|
float
|
The period, in days, to wait before an individual is eligible to seek out new relationships. |
None
|
Years_Between_Bin_Edges_Female
|
float
|
For the female population, the number of years covered in each age bin. |
None
|
Years_Between_Bin_Edges_Male
|
float
|
For the male population, the number of years covered in each age bin. |
None
|
Joint_Probabilities
|
List[List[float]]
|
The relative preference of members of one age bin to form relationships with members of another age bin. The columns represent female bins and rows represent male bins. |
None
|