Calculate final and useful sector sums and efficiencies
calculate_sector_agg_eta_fu.Rd
This function calculates final demand aggregates by sector for both final and useful stages and resulting efficiencies.
Usage
calculate_sector_agg_eta_fu(
.psut_data,
fd_sectors,
piece = "all",
pattern_type = "exact",
notation = RCLabels::notations_list,
prepositions = RCLabels::prepositions_list,
R = Recca::psut_cols$R,
U = Recca::psut_cols$U,
U_feed = Recca::psut_cols$U_feed,
U_eiou = Recca::psut_cols$U_eiou,
r_eiou = Recca::psut_cols$r_eiou,
V = Recca::psut_cols$V,
Y = Recca::psut_cols$Y,
S_units = Recca::psut_cols$S_units,
country = Recca::psut_cols$country,
year = Recca::psut_cols$year,
last_stage = Recca::psut_cols$last_stage,
gross_aggregate_demand = Recca::aggregate_cols$gross_aggregate_demand,
net_aggregate_demand = Recca::aggregate_cols$net_aggregate_demand,
aggregate_demand = Recca::aggregate_cols$aggregate_demand,
gross_net = Recca::efficiency_cols$gross_net,
gross = Recca::efficiency_cols$gross,
net = Recca::efficiency_cols$net,
sector = "Sector",
colnames = "colnames",
rowtypes = "rowtypes",
coltypes = "coltypes",
final = IEATools::all_stages$final,
useful = IEATools::all_stages$useful,
eta_fu = Recca::efficiency_cols$eta_fu
)
Arguments
- .psut_data
A data frame of PSUT matrices.
- fd_sectors
The sectors that count for final demand.
- piece
The piece to be aggregated. Default is "noun".
- pattern_type
Where to look for sectors. Default is "leading".
- notation
The assumed notation for the labels. Default is
list(RCLabels::bracket_notation, RCLabels::arrow_notation)
.- prepositions
The expected propositions in row and column labels. Default is
RCLabels::prepositions_list
.- R, U, U_feed, U_eiou, r_eiou, V, Y, S_units
The names of the matrix columns in
.psut_mats
. Defaults fromRecca::psut_cols
.- country
The string name of the country column. Default is
Recca::psut_cols$country
.- year
The string name of the year column. Default is
Recca::psut_cols$year
.- last_stage
The string name of the last stage column. Default is
Recca::psut_cols$last_stage
.- aggregate_demand, gross_aggregate_demand, net_aggregate_demand
The names of columns of aggregate demand. Defaults from
Recca::aggregate_cols
.- gross_net
The name of the column that tells whether aggregates are gross or net. Default is
Recca::efficiency_cols$gross_net
.- gross, net
Strings identifying gross or net quantities. Defaults from
Recca::efficiency_cols
.- sector
The name of the sector column. Default is "Sector".
- colnames, rowtypes, coltypes
Names of columns deleted after expanding matrices. Defaults are "colnames", "rowtypes", and "coltypes", respectively.
- final, useful
The string names for final and useful aggregates. Defaults from
IEATools::all_stages
.- eta_fu
The string name of the final-to-useful efficiency. Default is
Recca::efficiency_cols$eta_fu
.