Description Usage Arguments Value Author(s) Examples
View source: R/Contrained_regression.r
Function to carry out a constrained regression for a specific fleet segment and a specific type of costs, after setting the metier used by the fleet segment.
1 | Constrained_regression(COSTS, Fleet_segment, metier,type,path)
|
COSTS |
Data frame built applying EA function on individual vessel data and automatically saved as COSTS.csv in the working directory. |
Fleet_segment |
Fleet segment to be investigated. |
metier |
Vector of the metier usedd by the specified fleet segment. |
type |
Type of variable costs on which carry out the constrained regression. |
path |
Path where the results have to be saved. |
COSTS |
data.frame: see format in the package (type CO in the console). |
Fleet_segment |
String defining the fleet segment as reported in the COSTS data frame. |
metier |
String defining the metier as reported in the COSTS data frame. |
type |
String defining the type of variable costs as reported in the COSTS data frame. |
path |
Default path=tempdir() |
Isabella Bitetto
1 2 3 4 | library(optimization)
path=tempdir()
Constrained_regression(COSTS, "DTS_VL1218", c("OTB_DES_>=40_0_0",
"OTB_MDD_>=40_0_0"),"fuelcost",path)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.