EPP_singleperiod: EPP_singleperiod

View source: R/EPP_singleperiod.R

EPP_singleperiodR Documentation

EPP_singleperiod

Description

Expected profit from a newsvendor model based on a poisson distribution.

Usage

EPP_singleperiod(quantity, lambda, p, c, g, b, na.rm = TRUE)

Arguments

quantity

numeric,quantity to be ordered during season.

lambda

numeric, mean of the demand based on poisson distribution.

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 poisson distribution demand.

Value

a dataframe that contains calculations of the expected profit from a newsvendor model based on poisson 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

EPP_singleperiod(quantity=40149,lambda= 32000,p=24,c=10.9,g=7,b=0,na.rm=TRUE)

inventorize documentation built on June 1, 2022, 1:07 a.m.