-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDataForPlot_creation.m
77 lines (53 loc) · 2.47 KB
/
DataForPlot_creation.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
ii = d - SimulationStartingDay;
HouseholdsLiquidity(ii,:) = Households.Liquidity;
FirmsLiquidity(ii,:) = Firms.Liquidity;
BanksLiquidity(ii,:) = Banks.Liquidity;
FirmsTotalDebts(ii,:) = Firms.TotalDebts;
BanksTotalLoans(ii,:) = Banks.TotalLoans;
BanksDeposits(ii,:) = Banks.Deposits;
HouseholdsLaborIncome(ii,:) = Households.LaborIncome;
HouseholdsQuarterlyCapitalIncome(ii,:) = Households.QuarterlyCapitalIncome;
HouseholdsHousingPayment(ii,:) = Households.HousingPayment;
HouseholdsHousingInterestPayment(ii,:) = Households.HousingInterestPayment;
BanksEarnings(ii,:) = Banks.Earnings;
FirmsEarnings(ii,:) = Firms.Earnings;
FirmsRevenues(ii,:) = Firms.Revenues;
FirmsLaborCosts(ii,:) = Firms.LaborCosts;
FirmsEquity(ii,:) = Firms.Equity;
BanksEquity(ii,:) = Banks.Equity;
BanksRE(ii,:) = Banks.RetainedEarnings;
BanksTotalAssets(ii,:) = Banks.TotalAssets;
CentralBankDebt(ii,:) = Banks.CentralBankDebt;
EmployeesVector(ii,:) = Firms.NrEmployees;
ExpectedSalesVector(ii,:) = Firms.ExpectedSales;
UnemployedWorkers(ii,1) = numel(find(Households.employer==-1));
ProductionVector(ii,:) = Firms.ProductionQty;
Production(ii,1) = sum(Firms.ProductionQty);
Inventories(ii,1) = sum(Firms.Inventories);
SalesVector(ii,:) = Firms.MonthlySales(end,:);
PriceVector(ii,:) = Firms.price;
PriceIndex(ii,1) = mean(Firms.price);
WageIndex(ii,1) = mean(Firms.wage);
Inflation(ii,1) = PriceIndices.Inflation;
LaborDemandVector(ii,:) = Firms.LaborDemand;
ProductionPlanVector(ii,:) = Firms.ProductionPlan;
InventoriesVector(ii,:) = Firms.Inventories;
CBRate(ii,1) = PriceIndices.CBInterestRate;
HouseholdsHousingAmount(ii,:) = Households.HousingAmount;
HouseholdsHousingValue(ii,:) = Households.HousingValue;
HouseholdsSavings(ii,:) = Households.Savings;
HouseholdsEquity(ii,:) = Households.Equity;
HouseholdsTotalAssets(ii,:) = Households.TotalAssets;
HouseholdsTotalMortgage(ii,:) = Households.TotalMortgage;
HousingPrices(ii,:) = REmarket.HousingPrice(end);
HousingTransactions(ii,1) = REmarket.Transactions;
HousingDemand(ii,1) = REmarket.Demand;
HousingSupply(ii,1) = REmarket.Supply;
HousingsNumFireSale(ii,1) = Remarket.NumFireSale;
BanksSavingsAccounts(ii,:) = Banks.SavingsAccounts;
BanksTotalMortgages(ii,:) = Banks.TotalMortgage;
BanksMortgageBlocked(ii,1) = BankMortgageBlocked;
HouseholdsMortgageRejected(ii,1) = HouseholdMortgageRejected;
%% Save
Filename = ['ICEACE_run',num2str(RunNumber),'_All','.mat'];
save([Pat, Filename])