| Household | R Documentation |
The Household class aggregates information about
a household and its members.
An object of class Household.
expected_incomeSet of rules that are used to generate streams of expected income
expected_spendingSet of rules that are used to generate streams of expected spending
risk_toleranceRisk tolerance of the household
consumption_impatience_preferenceConsumption impatience preference of the household - subjective discount rate (rho). Higher values indicate a stronger preference for consumption today versus in the future.
smooth_consumption_preferenceSmooth consumption preference of the household - Elasticity of Intertemporal Substitution (EOIS) (eta). Higher values indicate more flexibility and a lower preference for smooth consumption.
print()Printing the household object
Household$print(current_date = get_current_date())
current_dateA date in the format "YYYY-MM-DD".
get_members()Getting members of the household
Household$get_members()
add_member()Adding a member to the household It will fail if a member with the same name already exists.
Household$add_member(household_member)
household_memberA HouseholdMember object.
set_member()Setting a member of the household If a member already exists, it will be overwritten.
Household$set_member(member)
memberA HouseholdMember object.
set_lifespan()Setting an arbitrary lifespan of the household
Household$set_lifespan(value)
valueA number of years.
get_lifespan()Getting a lifespan of the household If not set, it will be calculated based on the members' lifespans.
Household$get_lifespan(current_date = get_current_date())
current_dateA date in the format "YYYY-MM-DD".
calc_survival()Calculating a survival rate of the household based on its members' parameters of the Gompertz model.
Household$calc_survival(current_date = get_current_date())
current_dateA date in the format "YYYY-MM-DD".
get_min_age()Calculating a minimum age of the household members.
Household$get_min_age(current_date = get_current_date())
current_dateA date in the format "YYYY-MM-DD".
clone()The objects of this class are cloneable with this method.
Household$clone(deep = FALSE)
deepWhether to make a deep clone.
household <- Household$new()
household$risk_tolerance
household$consumption_impatience_preference
household$smooth_consumption_preference
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.