powered by
Calculating critical ratio of a news vendor model under any distribution.this critical ratio maxmizes profit.
CriticalRatio(sellingprice, cost, salvage, penality, na.rm = TRUE)
numeric,selling price of the SKU
numeric,cost of the SKU
numeric,,salvage or discounted value if sold after season,if there is no salvage , zero is placed in the argument.
numeric, peanlity cost of not satisfying demand if any, if not, zero is placed in the argument.
A logical indicating whether missing values should be removed
the critical ratio.
# NOT RUN { CriticalRatio(sellingprice=80,cost=60,salvage=45,penality=25,na.rm=TRUE) # }
Run the code above in your browser using DataLab