Constrained_regression: Function to carry out a constrained regression for a specific...

Description Usage Arguments Value Author(s) Examples

View source: R/Contrained_regression.r

Description

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.

Usage

1
Constrained_regression(COSTS, Fleet_segment, metier,type,path)

Arguments

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.

Value

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()

Author(s)

Isabella Bitetto

Examples

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)

SECFISH documentation built on Aug. 29, 2019, 5:10 p.m.