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

MPN_singleperiod

MPN_singleperiod


Description

calculating expected profit for a newsvendor model based on critical ratio.

Usage

MPN_singleperiod(mean, standerddeviation, p, c, g, b, na.rm = TRUE)

Arguments

mean

numeric,Expected demand of the SKU during season.

standerddeviation

numeric, standard deviation of the SKU during season.

p

numeric,selling price of the SKU

c

numeric,cost of the SKU

g

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

b

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

Details

calculating expected profit for a newsvendor model. based on assumed normal distribution demand.

Value

a dataframe that contains calculations of the maximum expected profit from a newsvendor model based on normal distribution.

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

MPN_singleperiod(mean= 32000,standerddeviation= 11000,p=24,c=10.9,g=7,b=0,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.