-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprintstats_ssdp.m
49 lines (47 loc) · 2.69 KB
/
printstats_ssdp.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
% Prints out statistics
%disp(sprintf('\n'))
%disp(sprintf('Inflation decomposition check : %0.3g percentage points off',decompCheck))
%disp(sprintf('Wage calculation check : %0.3g%% off',wageCheck))
disp(sprintf('\n'))
disp(sprintf('Consumption : %0.3g',Cbar))
disp(sprintf('Hours : %0.3g',Nbar))
disp(sprintf('Real money balances : %0.3g',mbar))
disp(sprintf('Wage level : %0.3g',wbar))
disp(sprintf('Utility level : %0.4g',U))
disp(sprintf('\n'))
disp(sprintf('Annual inflation : %0.3g%%',100*(mu^12-1)))
disp(sprintf('Frequency of price changes : %0.3g%%',100*freqpchanges))
disp(sprintf('Mean price change : %0.3g',100*EPchange))
disp(sprintf('\n'))
disp(sprintf('Mean absolute price change : %0.3g',100*MeanAbsPchange))
%disp(sprintf('Median absolute price change : %0.3g',100*MedAbsPchange))
%disp(sprintf('\n'))
%disp(sprintf('Mean price increase : %0.3g',100*EPincrease))
%disp(sprintf('Median price increase : %0.3g',100*MedPincrease))
%disp(sprintf('Std of price increases : %0.3g',100*STDpincrease))
%disp(sprintf('\n'))
%disp(sprintf('Mean price decrease : %0.3g',-100*EPDecrease))
%disp(sprintf('Median price decrease : %0.3g',-100*MedPdecrease))
%disp(sprintf('\n'))
disp(sprintf('Std of price changes : %0.3g',100*STDpchange))
disp(sprintf('Kurtosis of price changes : %0.3g',KurtosisPchange))
disp(sprintf('\n'))
disp(sprintf('Fraction of price increases : %0.3g%%',100-100*fracPriceDecr))
disp(sprintf('Fraction of price changes <5%%: %0.3g%%',100*fracSmallChanges))
disp(sprintf('Fraction of price changes <2.5%%: %0.3g%%',100*fracSmallChanges25))
if adjtype==3
disp(sprintf('\n'))
disp(sprintf('Menu cost as %% of revenue : %0.3g%%',McostinRev))
disp(sprintf('Menu cost as %% of wage bill : %0.3g%%',McostinWageBill))
disp(sprintf('Menu cost as %% of consumption: %0.3g%%',McostinCbar))
end
disp(sprintf('\n'))
disp(sprintf('Mean abs distance from p* : %0.3g%',100*AvAbsDistFromPstar))
disp(sprintf('Median abs distance from p* : %0.3g%',100*MedAbsPdistans))
disp(sprintf('\n'))
disp(sprintf('Mean D as %% of median V : %0.3g%%',100*AverD/MedV))
disp(sprintf('Median D as %% of median V : %0.3g%%',100*MedD/MedV))
disp(sprintf('Std of D as %% of median V : %0.3g%%',100*StdD/MedV))
disp(sprintf('\n'))
disp(sprintf('JC state dependence metric [0 1] : %0.3g',CalvoMenuMetric))
% disp(sprintf('AN state dependence metric [0 1] : %0.3g',FlexMeasure))