Learn R Programming

inventorize (version 1.1.1)

safteystock_CSL_normal: safteystock_CSL_normal

Description

calculating saftey stock based on cycle service level rate.

Usage

safteystock_CSL_normal(
  rate,
  quantity,
  demand,
  standerddeviation,
  leadtime,
  na.rm = TRUE
)

Arguments

rate,

cycle service level requested.

quantity

quantity ordered every cycle.

demand

numeric, expected annual demand of the SKU.

standerddeviation

numeric annual standard deviation of the demand.

leadtime

numeric,leadtime of order in weeks.

na.rm

logical with a default of TRUE

Value

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

Details

calculating saftey stock and expected unit short based on the cycle service identified assuming a normal distribution.

Examples

Run this code
# NOT RUN {
safteystock_CSL_normal(rate=0.95,quantity=30000,demand=28000,standerddeviation=5000,8,na.rm=TRUE)
# }

Run the code above in your browser using DataLab