Description Usage Arguments Value Author(s) Examples
View source: R/Disaggregation_of_the_costs.r
Function to disaggregate time series of variable costs by from the fleetsegment to the metier level, using the official time series of the costs and the official time series of transversal variables, combined with the results obtained from GLM function applied on individual vessel data.
1 | Disaggr(Costs_or,key_table_or,Eff,path)
|
Costs_or |
Data frame containing the variable costs time series by fleet segment. |
key_table_or |
Data frame containing the coefficients of the best fitting GLM, describing the relationship between variable costs structure and transversal variables by metier. |
Eff |
Data frame containing the transversal variables (effort and revenues) by metier. |
path |
Path where the results have to be saved. |
Costs_or |
See example typing Co_or in the R console. |
key_table_or |
See example typing key_tab_or in the R console. Details related to each column: Type of cost: Allowed values: fuel_costs, other_costs, labour_costs, maintenance_costs. Option: 1 additive model, 2 multiplicative model, 3 metier not significant. To fill in the fields Explanatory_variable and Coefficient, the output produced by the GLM.r script has to be considered for that fleet segment for the disaggregation. |
Eff |
See example typing Eff_ in the R console. |
path |
Default path=tempdir() |
Isabella Bitetto
1 | Disaggr(Costs_or,key_table_or,Eff,path=tempdir())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.