Learn R Programming

inventorize (version 1.1.1)

CriticalRatio: Criticalratio

Description

Calculating critical ratio of a news vendor model under any distribution.this critical ratio maxmizes profit.

Usage

CriticalRatio(sellingprice, cost, salvage, penality, na.rm = TRUE)

Arguments

sellingprice

numeric,selling price of the SKU

cost

numeric,cost of the SKU

salvage

numeric,,salvage or discounted value if sold after season,if there is no salvage , zero is placed in the argument.

penality

numeric, peanlity cost of not satisfying demand if any, if not, zero is placed in the argument.

na.rm

A logical indicating whether missing values should be removed

Value

the critical ratio.

Examples

Run this code
# NOT RUN {
CriticalRatio(sellingprice=80,cost=60,salvage=45,penality=25,na.rm=TRUE)
# }

Run the code above in your browser using DataLab