Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Note

this is the second version of the inventorize package, all the fucntions are without any academic contribution from my side, the aim is to facilitate and ease much of the bookkeeping that is endured during stock analysis.

Author(s)

"haytham omar email: <haytham@rescaleanalytics.com>"

Examples

CriticalRatio(sellingprice=80,cost=60,salvage=45,penality=25,na.rm=TRUE)

inventorize

Inventory Analytics and Cost Calculations

v1.0.6
GPL-3
Authors
Haytham Omar [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.