unit_curve: Crawford's Unit Learning Curve Function

Description Usage Arguments Examples

View source: R/unit_models.R

Description

Predicts the time or cost of the nth unit given the time of the mth unit and the learning rate

Usage

1
unit_curve(t, n, r, m = 1, na.rm = FALSE)

Arguments

t

time (or cost) required for the mth unit of production

n

nth unit you wish to predict the time (or cost) for

r

learning curve rate

m

mth unit of production (default set to 1st production unit)

na.rm

Should NA values be removed?

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
library(learningCurve)
# An estimator believes that the first unit of a product will 
# require 100 labor hours. How many hours will the 125th unit
# require given the organization has historically experienced
# an 85% learning curve?

unit_curve(t = 100, m = 1, n = 125, r = .85)
## [1] 32.23647

# If the estimator wants to assess the hours required for the
# 125 unit given multiple learning curve rates

r <- c(.8, .85, .9, .95)
unit_curve(t = 100, m = 1, n = 125, r = r)
## [1] 21.13225 32.23647 48.00243 69.95640

# If the estimator has the time required for the 100th unit
unit_curve(t = 100, m = 100, n = 125, r = .85)
## [1] 94.90257

learningCurve documentation built on May 2, 2019, 2:13 p.m.